Page 1 of 1

DIV width differences in different browsers

Posted: Tue Jan 18, 2005 11:02 am
by mzfp2
Hi,

Im using the DIV element to create a scrollable region in my site, I have specified a fixed width of 430px, this eppears ok IE, however in Mozilla Firefox it appears to take more physical width, which is interfering with the reso of the site design.

I was wondering if there was any way to unify the width or spacing between the two browsers?

Many thanks
Musaffar

Posted: Tue Jan 18, 2005 4:41 pm
by zenabi
Could you post your code or a url to a working example?

Posted: Wed Jan 19, 2005 5:20 am
by mzfp2
The following url best illustrates the problem, when viewed in the two differerent browsers the layer width has large difference in width :

http://www.lensbase.com/search.php?xSea ... mit=Search

Posted: Wed Jan 19, 2005 1:50 pm
by andre_c
i would recommend adding a doctype declaration, which will make ie and gecko browsers behave more alike.
i know ie and gecko browser display widths (because of padding) differently.
You might try setting padding to 0px and adding some margin and wrapping it on another div to avoid the padding problem