03
Oct
07

Pages HTML avec footer et header fixes

HTML:
  1. <!– Put IE into quirks mode –>
  2. <meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8″ />
  3. <title></title>
  4. <? $hh=100;
  5. $hf=50; ?>
  6.  
  7. <style type=“text/css”>
  8.  
  9. body {
  10.  height:100%;
  11.  max-height:100%;
  12.  overflow:hidden;
  13.  padding:0;
  14.  margin:0;
  15.  border:0;
  16.  }
  17.  
  18. #content {
  19.  display:block;
  20.  overflow:auto;
  21.  position:absolute;
  22.  z-index:3;
  23.  top:<?=$hh;?>px;
  24.  bottom:<?=$hf;?>px;
  25.  width:100%;
  26.  border-left:1px solid #000;
  27.  border-right:1px solid #000;
  28.  }
  29.  
  30. * html #content {
  31.  top:0;
  32.  bottom:0;
  33.  height:100%;
  34.  width:100%;
  35.  border-top:<?=$hh;?>x solid #fff;
  36.  border-bottom:<?=$hf;?>px solid #fff;
  37.  }
  38.  
  39. #head {
  40.  position:absolute;
  41.  top:0;
  42.  width:100%;
  43.  min-width:640px;
  44.  height:<?=$hh;?>px;
  45.  font-size:1em;
  46.  z-index:5;
  47.  border:1px solid #000;
  48.  }
  49.  
  50.  
  51.  
  52. #foot {
  53.  position:absolute;
  54.  bottom:0;
  55.  width:100%;
  56.  min-width:640px;
  57.  height:<?=$hf;?>px;
  58.  z-index:5;
  59.  border:1px solid #000;
  60.  }
  61.  
  62.  
  63.  
  64. </style>
  65. </head>
  66.  
  67. <div id=“head”>hello world</div>
  68. <div id=“foot”>THIS IS FOOTER</div>
  69. <div id=“content”>
  70. 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”


  1. No Comments

Leave a Reply