Why doesn't min-height not work on my page?

前端 未结 6 1884
忘掉有多难
忘掉有多难 2021-01-01 09:03

I have a gradient applied to the background of the body element. Then I have a container (right after body) that has a background .png image applied to it. The gradient alwa

6条回答
  •  别那么骄傲
    2021-01-01 09:35

    You have your min-height set to 100% which will only be as tall as any elements that fill the space. Express you min-height in terms of pixels. Also, note that IE6- requires it's own set of rules. See http://davidwalsh.name/cross-browser-css-min-height for more details.

提交回复
热议问题