Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

CSS padding quirk?

 
 
Vespasian
Guest
Posts: n/a
 
      06-03-2005
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?

Thanks,
Vesp
 
Reply With Quote
 
 
 
 
VK
Guest
Posts: n/a
 
      06-03-2005
IE tried to lock the privacy vulnerability
<https://bugzilla.mozilla.org/show_bug.cgi?id=147777> w/o success, just
more mess in its model.

It seems to be nor fixable

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

[snip]

> 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.

[snip]

Mike

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

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 sllrphoto@yahoo.com 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



Advertisments