HighDots Forums  

Different style applied when each page in a menu is open

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Different style applied when each page in a menu is open in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Different style applied when each page in a menu is open - 09-13-2003 , 12:13 PM






Hi,
Could somebody explain if I can use CSS to have a menu item look
different when I'm on the URL that matches the href of the link

i.e. I have a menu: home - about - links
A stylesheet is in place that changes the background of the menu item
on mouseover. When someone clicks on a link I want that menu item
background to stay highlighted while that page is being viewed.
Is this possible without having to change every single page?

Thanks, great group! John

Reply With Quote
  #2  
Old   
Grytpype-Thynne
 
Posts: n/a

Default Re: Different style applied when each page in a menu is open - 09-13-2003 , 02:42 PM






In article <b5e71cee.0309130813.73dc523e (AT) posting (DOT) google.com>,
rekdagaf (AT) hotmail (DOT) com says...
Quote:
Hi,
Could somebody explain if I can use CSS to have a menu item look
different when I'm on the URL that matches the href of the link

i.e. I have a menu: home - about - links
A stylesheet is in place that changes the background of the menu item
on mouseover. When someone clicks on a link I want that menu item
background to stay highlighted while that page is being viewed.
Is this possible without having to change every single page?

Thanks, great group! John

Take a quick look at http://www.animals-in-distress.net/home2.htm (in IE
only at the moment) it might give you an idea

Gerald


Reply With Quote
  #3  
Old   
Grytpype-Thynne
 
Posts: n/a

Default Re: Different style applied when each page in a menu is open - 09-14-2003 , 07:24 AM



In article <b5e71cee.0309132317.751010d5 (AT) posting (DOT) google.com>,
rekdagaf (AT) hotmail (DOT) com says...
Quote:
Take a quick look at http://www.animals-in-distress.net/home2.htm (in IE
only at the moment) it might give you an idea

Gerald

Thanks Gerard, I had a look at that and it is what I am looking for
(the effect in the table at the top of every page after the homepage).
I had a look at the source and the style sheet but wasn't able to
figure out how it is done. Did you have to change the background of
the relevant table cell in every page or can I do it in a template
with CSS or otherwise and get it to change all pages? Any assistance
would be appreciated. John

Hi,

The menu is an unordered list and is done in CSS but take a look at
http://www.animals-in-distress.net/home.htm for the version in a table in
which you have to change the cell background for each page.

if you want to send me your email address to the webmaster address on the
website I'll send you the CSS for the menu on the CSS page.

Gerald


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: Different style applied when each page in a menu is open - 09-16-2003 , 09:41 PM



Thanks Gerard, I have emailed the webmaster address. I am pretty new
to CSS. Can you tell me, do I just add the elements that you send me
to my existing CSS file?. Step by Step instructions would help greatly
but maybe thats pushing it...Cheers

John







Quote:
Hi,

The menu is an unordered list and is done in CSS but take a look at
http://www.animals-in-distress.net/home.htm for the version in a table in
which you have to change the cell background for each page.

if you want to send me your email address to the webmaster address on the
website I'll send you the CSS for the menu on the CSS page.

Gerald

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.