Jump to content

Horizontal Navbar


Wolphie

Recommended Posts

I'm not too sure where i've gone wrong because i've never really created an entire div layout. So this is a learning experience.

IE has yet again let me down, it looks and works fine in FF.

 

FF Shot:

yomn2.gif

 

IE Shot:

yoo2zn7.gif

 

CSS:

div#navbar {
background: url('../images/nav_bg.png') repeat-x;
text-align: left;
color: #FFFFFF;
padding-top: 1px;
padding-bottom: 1px;
}
div#navbar ul li { display: inline; }
div#navbar ul li a {
text-decoration: none;
color: #FFFFFF;
padding: 10px;
}
div#navbar ul li a:hover {
background: #333333;
border: 1px solid #000000;
color: #FFFFFF;
text-decoration: none;
}

 

HTML:

<div id="navbar">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="#">Latest</a></li>
<li><a href="#">Community</a></li>
<li><a href="#">Members</a></li>
</ul>
</div>

Link to comment
https://forums.phpfreaks.com/topic/94376-horizontal-navbar/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.