View Full Version : Proper div positioning in ALL browsers.

Jul 15th, 2010, 09:55 PM
Is there any CSS code to fix position a div in all browsers. I don't want it to move even 1 pixel because your viewing it in another browser.

Say I put a div at x:300,y:300 I want it to appear there in every browser imaginable and not shift to say x:302,y:304 because im viewing in safari or some other browser. Can CSS take on this job or will I have to use javascript to say - if using MSIE move it slightly to the left or right etc.

Please help! :)

Jul 15th, 2010, 10:46 PM
I don't understand people who worry over content moving 1pixel in different browsers you can spend hours and hours fussing over it. However who other than yourself is actually going to notice?

Who apart from yourself is going have your website open in two separate browsers at the same time?

Jul 15th, 2010, 10:53 PM
If you are talking about layout for a site where you are using the poistion, top, left, right and bottom styles to set up your layout then that is a bad idea. Let the content flow naturally. You will end up with less problems.

Jul 16th, 2010, 05:31 AM
It's necessary for a tool I have developed Placement amongst all browsers has to be 100% accurate. Can anyone help or guide me in the right direction please?

Jul 16th, 2010, 02:48 PM
Why does it need to be exact?

Jul 16th, 2010, 04:46 PM
A link to your page might be the best next step, then we can have a look rather than arguing about whether or not it needs to be pixel perfect.....

Jul 17th, 2010, 05:14 AM
I'd like to help, but I need more information and maybe a link or some code to look at