Log in

View Full Version : Resolved Thick underline when active



jocke
02-11-2009, 11:27 AM
Hey everyone,

I apologize if this already exists in another thread, if so please delete this one.

Right, I'm using this thick underline CSS thingy (from DD), which is exactly what I need for my site, however I would like that the underline stays when in "active mode". When hovering the menu it is all good, but when I click a link and the browser shows the chosen link I would like the underline to show up under the link.

This is the CSS I'm using.

http://www.dynamicdrive.com/style/csslibrary/item/thick_underline_menu/ (http://www.dynamicdrive.com/style/csslibrary/item/thick_underline_menu/)

Anyone out there who could help me?

Cheers in advance,
Jocke.

Snookerman
02-11-2009, 11:34 AM
Give the menu you want to be highlighted the class "selected", eg:

<ul>
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
<li><a href="http://www.dynamicdrive.com/style/">CSS Codes</a></li>
<li><a href="http://www.dynamicdrive.com/forums/">Forums</a></li>
<li><a href="http://tools.dynamicdrive.com" class="selected">Webmaster Tools</a></li>
<li><a href="http://www.javascriptkit.com/">JavaScript</a></li>
<li><a href="http://www.cssdrive.com">Gallery</a></li>
</ul>

Good luck!

jocke
02-11-2009, 11:38 AM
Wasn't harder than that? :o
You, my friend saved my day.

Jag bjuder på en öl om du har vägarna förbi Umeå.

Snookerman
02-11-2009, 11:56 AM
Hehe, glad to save your day!

Good luck with your site and see you in Umeå :D