开发者

css min-height ie8

开发者 https://www.devze.com 2023-02-11 00:02 出处:网络
My content box\'s last part doesn\'t show up in ie8, in ffox and chrome works fine. .container { width: 1000px;

My content box's last part doesn't show up in ie8, in ffox and chrome works fine.

    .container
{
    width: 1000px;
    min-height:1200px;
    height:开发者_JAVA百科auto !important;
    height:1200px;
    margin-left:15px;
}

If i use overflow:hidden; no change.. whats wrong?


If you are floating elements within a container, you might want to consider adding overflow:hidden to the parent container. This will clear the floats within the container. It's quite hard to predict what the problem is without seeing a live version.

I would still recommend putting your html and css up on jsfiddle for everyone to see and have a play with.


Don't use clear div's. It's bad practice and can always be done using pure css (overflow:hidden).

Look at the double height property which is probably the problem.


You've got height in there twice:

min-height: 1200px;
height: auto !important;
height: 1200px;
0

精彩评论

暂无评论...
验证码 换一张
取 消