August 24, 200917 yr Does anyone know of a site where i can get the css code for basic inline navs/menus Thanks
August 24, 200917 yr Is it just a horizontal menu your after? if so you can adjust this css & html: a.inlinenav:link, a.inlinenav:visited, a.inlinenav:hover,a.inlinenav:active { float:left; (causes links to line up from the left) display:block; (if you want to include a background image etc this will help define width & height) padding:5px; width:auto; height:20px; background: url(images/funkylinkbackground.jpg) ; } <a href="" class="inlinenav">example</a> some people like to put the links in a list as well, but i don't think its necessary. hope that helps, let us know if you need any more info Stevo
August 27, 200917 yr I will supply my css/div menu complete just in case you or anyone else need something basic. Not sure how the experts do it, but this way seems to work for me, except the fonts don't seem to be similar in IE7 and FF. HTML CODE <div id="menucontainer"><!-- comment --> <div id="menu"><!-- Div to contain the menu div ie give it somewhere to be. --> <div id="menustyle"><!-- div to contain the list). --> <ul id="one"> <li class="two"><a href="index.html" text-decoration="none">Home</a></li> <li class="two"><a href="index.html" text-decoration="none">About</a></li> <li class="two"><a href="index.html" text-decoration="none">link</a></li> <li class="two"><a href="index.html" text-decoration="none">Share</a></li> <li class="two"><a href="index.html" text-decoration="none">Whatever</a></li> </ul> </div> </div> </div> CSS CODE div#menucontainer { width: 1000px; margin: 0px; border: 0px; padding: 0px; } div#menu { height:40px; width:1000px; border: 0px solid red; background-color: black; padding-top:8px; margin: 0px; } div#menustyle { width:560px; height:24px; margin-left:360px; margin-right:auto; background-color: #000000; border-top: solid 1px #99cc33; border-bottom: solid 1px #99cc33; margin-top: 0px; } ul#one { font-family:arial; font-size: 90%; font-weight: normal; color:#ffffff; position:relative; float:left; margin-top:2px; list-style-type: none; text-decoration: none; } li.two { font-family:arial; font-size: 90%; font-weight: normal; color:#ffffff; position:relative; float:left; margin-top:2px; list-style-type: none; text-decoration: none; float:left; padding-left:20px; padding-right:30px; } Hope this is useful. If anyone has a correction on the font area of this code please feel free to put in your 2 cents.
Create an account or sign in to comment