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
Share on other sites

Do you have a website where we can take a look at this?

 

Also your 

#menu ul {

float: left;

list-style: none;

margin:0; padding: 0;

}

 

You placed the ul's outside of everything, so everything nested inside of ul will get the benefits of the CSS code.

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.