javascript - Layout for site with three navbars -


i'm trying to work out how best set site have lost last 2 days trying solve issue content moving when use jquery validationengine validate forms.

the easiest way explain i'm trying show want here's jsfiddle

the small navbar under main 1 contain users relative position.

when make content div large bleeds out top when user scrolls. i'm wondering how set content scrolls in behind 2 bars , doesn't appear @ top. can't figure out gap @ top coming allow bleeding.

also, when fixed. able use jquery validationengine inside content div without stuff jumping around place.

stack looking code so

test.html

    <!doctype html>     <html>     <head>       <title>tester</title>      <style>     body {         padding: 0;       }     .wrapper {         margin:0 auto;         width: 1000px;     }     .static {              width:1000px;         z-index:2;         height:120px;         position: fixed;        }     .header {         background-color:silver;         height:100px;     }      .location {         background-color:yellow;         height:20px;     }      .content {         background-color:orange;         width:800px;         height:1500px;         float: left;         position:relative;         top: 120px;         scroll:hidden;     }     .menu {         background-color:green;         position: relative;         left: 800px;         width:200px;      }      </style>       </head>     <body>       <div class="wrapper">         <div class="static">             <div class="header">                 header             </div>               <div class="location">                location             </div>              <div class="menu">                 menu             </div>           </div>         <div class="content">             content         </div>          </div>       </body>     </html> 

you need add margin:0;t o body style.

body {     padding: 0;       margin:0;     } 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -