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
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
In the head tagIn the body tag where you want your menuHTML Code:<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>HTML Code:<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>
Lets set the stage on fire, and hollywood will be jealous.
thank you, i edited it to fit in with the code and thanks it worked +rep
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!