how can i underline the current link using php includes?

  • Thread starter Thread starter bastardswordfish
  • Start date Start date
B

bastardswordfish

Guest
hi, i'm just learning php and i'm using an include for my navigation bar. so, my navigation links are the same throughout the page.. but i want to show a border-bottom under the link they click on.. so i have the links home, contact, blah blah, and when they click on contact, i want it to show an underline (border-bottom in the css), etc. can i do this with php? i can send you my coding through e-mail if you need to see it.
the only php i have in there (because i don't really understand it and followed a basic tutorial on includes) is this: <?php include_once('nav.inc.php'); ?> where my navigation is supposed to go. i'm not sure how i would include what you said into my file at all. php is pretty confusing to me. :(
 
just do it with css ?
Type this in your header or in your CSS file if you have any:
<style type="text/css">
a:active
{
border-bottom: medium solid
}
</style>
 
Back
Top