Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. CSS div padding in IE (7)

CSS div padding in IE (7)

Scheduled Pinned Locked Moved Web Development
helpcssquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Seishin
    wrote on last edited by
    #1

    Hi! I' trying to layout some div inside another div, both float: left and some padding but without specifying widths. we all know the issue with IE and width and padding :sigh: ... I know the trick width: 100px !important; width: 120px;, but here I specify width. Is it somehow possible to achieve the effect without widths?? thanks for any help!!

    life is study!!!

    G J 2 Replies Last reply
    0
    • S Seishin

      Hi! I' trying to layout some div inside another div, both float: left and some padding but without specifying widths. we all know the issue with IE and width and padding :sigh: ... I know the trick width: 100px !important; width: 120px;, but here I specify width. Is it somehow possible to achieve the effect without widths?? thanks for any help!!

      life is study!!!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Are you talking about the box model bug[^]? The best solution is not to use css hacks, but to put a doctype on the page so that it's rendered in standards compliant mode.

      Despite everything, the person most likely to be fooling you next is yourself.

      1 Reply Last reply
      0
      • S Seishin

        Hi! I' trying to layout some div inside another div, both float: left and some padding but without specifying widths. we all know the issue with IE and width and padding :sigh: ... I know the trick width: 100px !important; width: 120px;, but here I specify width. Is it somehow possible to achieve the effect without widths?? thanks for any help!!

        life is study!!!

        J Offline
        J Offline
        Jon Rista
        wrote on last edited by
        #3

        overflow: hidden on both divs overflow: auto on the inner if you want it to scroll with a set height

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups