general container - IE8 horizontal scrollbar problem

前端 未结 2 1326
旧时难觅i
旧时难觅i 2021-01-26 06:52

I ran into the following problem:
how to make a general container (HTML + CSS; no javascript)
that is contrained vertically (it has a fixed outer height), so it may have

相关标签:
2条回答
  • 2021-01-26 07:12

    Floating will probably get the result you're looking for. Check out my example here:
    http://jsbin.com/ivegi4/4/edit

    I took away the containing divs, as I didn't think they were necessary, but I wouldn't see a problem adding them back in if you absolutely needed them.

    0 讨论(0)
  • 2021-01-26 07:32

    Set position: absolute on the container-div-3 div. This will cause the div to shrink-wrap whatever is inside, and works fine in IE8.

    0 讨论(0)
提交回复
热议问题