Div estatico con css

http://ryanfait.com/position-fixed-ie6/

CSS

* {
    margin: 0;
}
html, body {
    height: 100%;
    overflow: auto;
}
.wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
}
.box {
    position: fixed;
    left: 10px;
    top: 180px;
}
* html .box {
    position: absolute;
}

HTML:

<html>
    <head>
        <link rel="stylesheet" href="yo.css" />
    </head>
    <body class="abc">
  
        <div class="wrapper">
            <p>All of your website content should be here.</p>
   <br>
         <p>All of your website content should be here.</p>
   <br>
         <p>All of your website content should be here.</p>
   <br>
         <p>All of your website content should be here.</p>
   <br>
         <p>All of your website content should be here.</p>
   <br>
  
  
        </div>
        <div class="box">
            <p>This box is fixed.</p>
        </div>
    </body>
</html>

No hay comentarios:

Publicar un comentario