Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > CSS padding quirk?

Thread Tools

CSS padding quirk?

Posts: n/a
Hi all,

I've noticed that the CSS padding attribute for DIV
works differently on different browsers. Actually, so
does the left attribute.

On Firefox, padding is added to the entire width
of a DIV, whereas in IE 6.0, it is not.

As for left, the default left value in Firefox
if left unspecified is 0, whereas in IE 6 it isn't.

Has anyone else noticed this?

Reply With Quote
Posts: n/a
IE tried to lock the privacy vulnerability
<> w/o success, just
more mess in its model.

It seems to be nor fixable

Reply With Quote
Michael Winter
Posts: n/a
On 03/06/2005 16:50, Vespasian wrote:


> On Firefox, padding is added to the entire width
> of a DIV, whereas in IE 6.0, it is not.

When IE6 is put into Standards mode by including a complete DOCTYPE
declaration, it will act correctly. However, earlier versions will
always use the broken model.

Google "Box model" for more information.



Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
margin/padding of submit button with CSS Andreas Emmert HTML 14 04-22-2008 08:54 PM
CSS Padding(Margin?) Issues in Firefox HTML 11 10-28-2006 09:52 PM
CSS: preserving padding next to floated element Rik HTML 0 06-05-2006 11:00 PM
div css margins broken when no padding is applied Andrew Crowe HTML 3 12-13-2003 04:17 PM
Padding in css-styled button, ie6 Søren Jacobsen HTML 2 10-20-2003 07:43 AM