Jump to content

Site menu Help..


eleven0

Recommended Posts

I'm putting up a master menu. But i got a problem with something.

 

Active tab is not working.

 

I got this for my menu;

			<div  id="menu">
		<ul>
			<li id="current"><a href="index2.php">Home</a></li>
			<li><a href="index.php">Forums</a></li>
			<li><a href="index3.php">Download</a></li>
			<li><a href="#">Contact</a></li>
			<li><a href="#">Help</a></li>
			<li><a href="#">Other</a></li>		
		</ul>		
</div>

 

here i got this in CSS;

 

#menu {
clear: both;	
margin: 0; padding: 0 40px 0 0;
font:12px/26px Tahoma, Sans-serif;
text-transform: uppercase;
height: 26px;
}
#menu ul {
float: left;
list-style: none;
margin:0; padding: 0;
}
#menu ul li {
display: inline;
}
#menu ul li a {
display: block;
float: left;
padding: 0 8px;
color: black;	
text-decoration: none;
}
#menu ul li a:hover {
background-color: #666;
color: #cccccc;	
}
#menu ul li#current a {	
background-color: #474A41;
color: #333;
}

 

When you click on on another page, it would still show it like you are on "Home" page.

 

Thanks for any help.

 

Link to comment
https://forums.phpfreaks.com/topic/90063-site-menu-help/
Share on other sites

No, actually... I work on my localhost...

But I'll set up a demo site as soon as I get home...

 

 

my problem is when you click on Downloads, it would still show it as you were on "Home" page. This goes for every page in the menu.

 

 

So any ideas how I'll get this working?

Link to comment
https://forums.phpfreaks.com/topic/90063-site-menu-help/#findComment-461775
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.