View Full Version : nav bars
how do you make the nav bars go all the way across the page so there is no colour showing. so the nav bar touches the edge of the pages. and also, the nav bar is at the top of the page showing no bg colour also.
using divs thanks
Decode
21-12-2007, 06:21 PM
In the head tag
<style type="text/css">
body {margin: 0px}
.navbar {width: 100%;
height: 35px;
background: url('Add bg image url here, must be 35px high')
text-align: center;}
</style>
In the body tag where you want your menu
<div class="navbar">
<a href="page1.html">Page 1</a>
<a href="page2.html">Page 2</a>
<a href="page3.html">Page 3</a>
<a href="page4.html">Page 4</a>
</div>
thank you, i edited it to fit in with the code and thanks it worked :) +rep
loserWILL
21-12-2007, 08:34 PM
In conclusion to Toms post:
Just add "width: 100%" to any code in your CSS and it will go across the whole page.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.