Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How do you avoid defining width and padding in the same div?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #23470
    mikes
    Member

    I’ve heard from various sources that when you define both width and padding in one declaration that IE6 doubles the padding. So how do you avoid defining width and padding in the same div?

    Obviously, you can split your definition between two divs.

    That’s what I’ve been doing but it looks silly and makes the code less readable. I use margin wherever I can but sometimes you just have to have padding.

    Is this what other people do or is there a better way?

    Maybe we can get someone to pass a law against using IE6?

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.