Page 1 of 1

Bit of HTML/CSS help needed!

PostPosted: Mon Mar 13, 2006 2:20 am
by GeForce
Hi all,

OK, well my website is: http://www.livescripts.net.

For the menu at the top, when a user clicks on one of the links (eg. tutorials) I would like that link to stay highlighted whilst the user is on that page. At the moment I have just done the rollover with CSS and set a:active to have the background colour. The problem with this, is that if a user "clicks off" the link the background colour goes.

So how can I make a menu item stay highlighted whilst the user is on that page, even if they "click off"?

Cheers,

Jon 8)

Re: Bit of HTML/CSS help needed!

PostPosted: Thu Mar 16, 2006 3:18 am
by candle_86
well I could do it for you in dreamweaver, I do it with custom buttons, but thats getting complicated.

Re: Bit of HTML/CSS help needed!

PostPosted: Thu Mar 16, 2006 1:43 pm
by GeForce
Hmm yes. Although there is a way to do it with CSS, maybe JavaScript, I just have no idea what it is.

Jon 8)