Nana2010
10-29-2010, 03:45 AM
Hello,
I'm not sure if this is the correct place to post this question. If it isn't, please let me know where I should post it.
I created a simple content slider with each link directed to a section on the same page. The menu I'm using is straightforward:
<div id="menu">
<ul>
<li><a href="#home" class=".current">Home</a></li>
<li><a href="#about_me">About Me</a></li>
<li><a href="#IT_consult">IT Consultant</a></li>
<li><a href="#edu">Education</a></li>
<li><a href="#leadership">Leadership</a></li>
<li><a href="#community">Community Involvement</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
In CSS, I have
#menu {
width: 200px;
margin: 100px 0px 0px 5px;
float:none;
}
#menu ul {
margin: 0;
padding: 0px;
list-style: none;
line-height: normal;
}
#menu li {
background:url(images/button.png) no-repeat;
}
#menu a {
display: block;
width: 180px;
margin: 0px;
padding: 5px;
text-decoration: none;
text-align: left;
text-transform: capitalize;
font:Calibri;
font-size: 14px;
font-weight: normal;
color: #000000;
}
#menu a:hover {
text-decoration: none;
color:#999999;
}
#menu a:active {
text-transform: uppercase;
}
As you can see in the website here: http://it.gettingtoknowlucy.co.cc/test/index.html, when you click on the menu, the menu text is capitalized, but it doesn't stay capitalized. What I want to do is while on the selected page, I want the menu text to stay capitalized.
I'm getting quite frustrated with this. Any help is appreciated!
I'm not sure if this is the correct place to post this question. If it isn't, please let me know where I should post it.
I created a simple content slider with each link directed to a section on the same page. The menu I'm using is straightforward:
<div id="menu">
<ul>
<li><a href="#home" class=".current">Home</a></li>
<li><a href="#about_me">About Me</a></li>
<li><a href="#IT_consult">IT Consultant</a></li>
<li><a href="#edu">Education</a></li>
<li><a href="#leadership">Leadership</a></li>
<li><a href="#community">Community Involvement</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
In CSS, I have
#menu {
width: 200px;
margin: 100px 0px 0px 5px;
float:none;
}
#menu ul {
margin: 0;
padding: 0px;
list-style: none;
line-height: normal;
}
#menu li {
background:url(images/button.png) no-repeat;
}
#menu a {
display: block;
width: 180px;
margin: 0px;
padding: 5px;
text-decoration: none;
text-align: left;
text-transform: capitalize;
font:Calibri;
font-size: 14px;
font-weight: normal;
color: #000000;
}
#menu a:hover {
text-decoration: none;
color:#999999;
}
#menu a:active {
text-transform: uppercase;
}
As you can see in the website here: http://it.gettingtoknowlucy.co.cc/test/index.html, when you click on the menu, the menu text is capitalized, but it doesn't stay capitalized. What I want to do is while on the selected page, I want the menu text to stay capitalized.
I'm getting quite frustrated with this. Any help is appreciated!