Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 
Play Blast Billiards on your PC desktop! This downloadable game features six of the best levels from Original, Trick, Ultimate and Deluxe Blast Billiards!


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
Sheepeth
new user


Reg'd: Tue
Posts: 20
StyleSheets
      #353447 - Sat Jun 16 2007 11:08 AM

Having a problem with multiple stylesheets for a single html document.

I want to use more than one style for the page i'm creating.
I have links using the 'A:Link' - 'A:visited' style etc. But I want to have different styles for different links. I.E. Some links have a white background so the links need to be black on 'hover' and some links on the page have a dark bg so I need those to have a white 'hover'.

I originally created 2 different stylesheets for each type of link, but the latter of the css sheets overides the preceding one when linking externally.

I have tried using different classes and also embedding different styles within stylesheets themselves but nothing works.

How do you actually get stylesheets to work without conflicts?

An example of what i want is here http://www.dwp.gov.uk/ the links at the top are different styles
or maybe http://www.cps.gov.uk/

--------------------
You can't beat an egg!..............no wait!!1


Post Extras: Print Post   Remind Me!   Notify Moderator  
Sam
regular


Reg'd: Tue
Posts: 432
Re: StyleSheets [Re: Sheepeth]
      #353545 - Sat Jun 16 2007 08:03 PM

Have you tried...

a:hover {text-decoration: none; color: white;}
a.nav:hover {text-decoration: none; color: black;}

..and...

<a href="page1.html">White</a>
<a class="nav" href="page2.html">Black</a>

There's a full explanation here:

http://www.yourhtmlsource.com/stylesheets/csslinks.html


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website