Forums

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

Home Forums CSS Incorrect Max-Width

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34102
    mrtnbroder
    Member

    Hello!

    I’ve got a problem with max-width on images.

    It does work 100% correctly when I do not use a border, but with a padding and a border, it just doesnt scale right.

    take a look at this: http://img7.imagebanana.com/img/aucl2ahk/incorrect.jpg

    images are centered using “margin: 24px auto”

    anyone knows a solution?

    #85777
    TheDoc
    Member

    Total width = Width + Padding + Border

    #85778
    TheDoc
    Member

    You might be able to use the new CSS3 box-sizing method to contain everything, but browser support may be rough.

    #85779
    mrtnbroder
    Member

    box-sizing works great and since IE got it right too, it should be fine.
    thanks!

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