开发者

css width adjust

I want that a div as开发者_开发问答 a certain width (80%) in all resolution, and browser resize this div resize too, only the width. I must work only width css, no javascript

I have this:

 #container{
    position:absolute;
    right:0px;
    top:0px;
    width:80%;
    height:401px;
    outline:solid 1px red;
}

When I resize or see in lower resolution this div becomes above others. Any ideas?

Thanks


Change z-index or change positioning, cause absolute means this div dosen't matter about other elements and can cover them.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜