View Single Post
Old 10-22-2010, 06:41 PM   PM User | #2
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
You can assign a class to the <a> tag when it is the "current" page. You can even assign multiple classes to a single element in the HTML if you need to. Then you just make a CSS rule to style up the "current" link. It can be done any number of ways, but in its most basic form it might look something like this:

HTML:
Code:
<div class="sf_navigation_top">
  <ul>
    <li><a href="">Link Text Here</a></li>
    <li><a href="" class="current">Link Text Here</a></li>
    <li><a href="">Link Text Here</a></li>
    <li><a href="">Link Text Here</a></li>
    <li><a href="">Link Text Here</a></li>
  </ul>
</div>

CSS:
Code:
.sf_navigation_top ul li a {
text-decoration: none;
display: block;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
font-style: normal;
font-variant: normal;
text-transform: none;
padding: 10px 19px 10px 19px;
}

.sf_navigation_top ul li a.current {
background-color:#f00;
}
If you can provide a link to your test page I can provide a more specific answer to the question.
__________________
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting
Rowsdower! is offline   Reply With Quote