HTML:
-
<!– Put IE into quirks mode –>
-
<meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8″ />
-
<title></title>
-
<? $hh=100;
-
$hf=50; ?>
-
-
<style type=“text/css”>
-
-
body {
-
height:100%;
-
max-height:100%;
-
overflow:hidden;
-
padding:0;
-
margin:0;
-
border:0;
-
}
-
-
#content {
-
display:block;
-
overflow:auto;
-
position:absolute;
-
z-index:3;
-
top:<?=$hh;?>px;
-
bottom:<?=$hf;?>px;
-
width:100%;
-
border-left:1px solid #000;
-
border-right:1px solid #000;
-
}
-
-
* html #content {
-
top:0;
-
bottom:0;
-
height:100%;
-
width:100%;
-
border-top:<?=$hh;?>x solid #fff;
-
border-bottom:<?=$hf;?>px solid #fff;
-
}
-
-
#head {
-
position:absolute;
-
top:0;
-
width:100%;
-
min-width:640px;
-
height:<?=$hh;?>px;
-
font-size:1em;
-
z-index:5;
-
border:1px solid #000;
-
}
-
-
-
-
#foot {
-
position:absolute;
-
bottom:0;
-
width:100%;
-
min-width:640px;
-
height:<?=$hf;?>px;
-
z-index:5;
-
border:1px solid #000;
-
}
-
-
-
-
</style>
-
</head>
-
-
<div id=“head”>hello world</div>
-
<div id=“foot”>THIS IS FOOTER</div>
-
<div id=“content”>
-
A layout with a fixed width, a fixed header and a fixed footer that stays on the bottom. The content area fits between the header and footer and scrolls if necessary. Plus the bonus of a CSS navigation menu that works in all browsers.
0 Responses to “easyphp et url rewriting”
Leave a Reply