CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 18th, 2000, 09:53 PM
emuse emuse is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: canberra, act, australia
Posts: 15 emuse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hello

I'm trying to get a few different link and hover styles within the one page. This is because there are three different menus, and I want each to have different rollover properties.

I've linked the page to an external style sheet, and have also tried to put an inline style into the <a href> tag of the menus concerned, but they still seem to stick to the main external stylesheet.

thank you for any ideas on how to do this,Sue

Reply With Quote
  #2  
Old September 19th, 2000, 05:57 AM
null null is offline
All round clown
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 21 null User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I had the same dillema a while ago, and the only solution I could come up was to use horrible frames. Not really a solution to your problem, but an alternative.




[This message has been edited by null (edited September 19, 2000).]

Reply With Quote
  #3  
Old September 19th, 2000, 09:39 AM
Jasper Jasper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 11 Jasper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Okay then..

In your stylesheet place something like this

a {color:#3050E0;}
a:hover {color:#E05030;}
a.other {color:#E05050;}
a.other:hove {color:#3050E0}

And use the following lines in your html.

<a href="#">Link1</a>
<a href="#" class="other">Link2</a>

That's is...

Reply With Quote
  #4  
Old September 19th, 2000, 06:04 PM
emuse emuse is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: canberra, act, australia
Posts: 15 emuse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Jasper and Null

thanks for your replies. I have also tried using classes for all the menu styles, and thus avoiding any mention of A: and A:hover in the code of the external style sheet (which seems to set the code for the whole page, overriding classes). Thus all the menu styles are on an equal footing. The reference to the class goes in the <a href> tag, like this <a href class=green>.

But, I understand that styles have wider browser-compatability than classes, so may try the style code suggested.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css-multiple rollover styles in one page

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap