CSS padding quirk?

Discussion in 'Javascript' started by Vespasian, Jun 3, 2005.

  1. Vespasian

    Vespasian Guest

    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
     
    Vespasian, Jun 3, 2005
    #1
    1. Advertising

  2. Vespasian

    VK Guest

    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
     
    VK, Jun 3, 2005
    #2
    1. Advertising

  3. 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.
     
    Michael Winter, Jun 3, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Morris

    Re: dtd and quirk mode

    Chris Morris, Jul 22, 2003, in forum: HTML
    Replies:
    0
    Views:
    407
    Chris Morris
    Jul 22, 2003
  2. Richard
    Replies:
    1
    Views:
    422
  3. Blinky the Shark

    Konqueror Quirk? Safari?

    Blinky the Shark, Feb 18, 2004, in forum: HTML
    Replies:
    9
    Views:
    462
    Blinky the Shark
    Feb 20, 2004
  4. Spartanicus

    IE6 quirk check

    Spartanicus, Jul 16, 2004, in forum: HTML
    Replies:
    2
    Views:
    457
    Spartanicus
    Jul 16, 2004
  5. David Graham

    quirk or standard mode

    David Graham, Dec 21, 2005, in forum: HTML
    Replies:
    2
    Views:
    781
    David Graham
    Dec 21, 2005
Loading...

Share This Page