开发者

How to keep inside body of html page fixed

When I re-sized my application window , my footer,body and hea开发者_JAVA百科der shrinks but i want to keep width and height same as a original, so when we re-sized window outside scroll appears and which keeps footer,body and header part remains same as original. How can i do this...? Advance thanks...

#contentFrame {


    height: 74%;
    padding:0px;
    float:left;
    position: absolute;
    top: 70px;
    left: 180px;
    overflow: auto;
    overflow-y:visible;
    -ms-overflow-y: auto;
    /*   -ms-overflow-y: hidden; */ /*for ie8*/
    bottom:50px;
    width:auto; 
    right:10px;
}


You should be able to set width:###px and height:###px attributes in the CSS for any (block) element on your page.


set the bounds for the header and footer div's in pixels. Also, use font in pixels if you want them to remain the same as well.


I think you can achieve this using the CSS property min-width: #px

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜