/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
HTML: <body> <div id="all-wrap"> <div id="wrapper"> <div id="body-wrapper"> // Everything </div> </div> </div> </body> CSS: #all-wrap { background-color: transparent; text-align: center; left: 0; width: 100%; height: 1px; overflow: visible; visibility: visible; display: block;} #wrapper { position: absolute; top: -30px; left: 50%; visibility: visible; z-index: 1; margin-left: -647px; height: 928px; width: 1280px; background: url(../images/bg.jpg) 0 30px no-repeat;} #body-wrapper { position: relative; z-index: 1; height: auto; width: 1280px; float: left;}