Evenly space navbar.
-
I have used the navbar template provided by the Codex, except adding in a background image as opposed to a flat color.
What I am trying to do now is make it so that the “buttons” are evenly spaced across the top. Wether that be center justified or left justified, I haven’ decided.
I assume it is a trick in the padding for the css, but setting it on auto makes everything all scunched together.
CSS for navbar:
#navmenu {
text-align: right;
}#navmenu ul {
margin: 0;
padding: 0;
list-style-type: none;
list-style-image: none;
}#navmenu li {display: inline; }
#navmenu ul li a {
font-family: "impact", "arial black";
font-size: 150%;
font-weight: ;
margin: 4px;
padding: 5px 15px 5px 15px;
color: black;
background: url("/images/cubes.gif") no-repeat center;
}#navmenu ul li a:hover {
text-decoration: none;
color: #06c;
}Code calling Navbar: (Apostrophes used to prevent the anchors from getting eaten)
<div id="navmenu">- <'a href="<?php echo get_settings('home'); ?>">news
- <'a href="/links">links
- <'a href="/gaming">gaming
- <'a href="/about">about
- <'a href="/?page_id=190">downloads
- <'a href="/archives">archives
- <'a href="/wp-gal">gallery
</div>
Thanks
-DR
http://www.theruse.net
- The topic ‘Evenly space navbar.’ is closed to new replies.