Reply
Hyperlink stylesheets
Old 04-15-2008, 03:27 PM Hyperlink stylesheets
dave9713's Avatar
Ultra Talker

Posts: 261
Name: David
Location: London
Hi

I have a page from which I want 2 different styles for the hyperlinks, I have a main stylesheet however i want a few of the links to appear differently to this.

Is there something I can place in which allows me to over ride the page stylesheet and use a new one for a certain few links?

Thanks for any help given

Dave
__________________

dave9713 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 04-15-2008, 03:31 PM Re: Hyperlink stylesheets
wayfarer07's Avatar
$frontend->developer

Posts: 1,032
Name: Abel Mohler
Location: Asheville, North Carolina USA
ummmm.... write a separate class for the links you want styled differently? There is no need to have a separate stylesheet just for a few links... Am I missing the point of what you are trying to do?
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 03:34 PM Re: Hyperlink stylesheets
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
you can do this in the SAME stylesheet.

Code:
a {whatever}

a:hover {whatever}

a.newstyle {something else}

a.newstyle:hover {something else}
Then for that new link style...add this to your link

Code:
<a href="#" class="newstyle">Everyone loves Gilligan :-)</a>
ps, anyone like my subliminal message
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 03:35 PM Re: Hyperlink stylesheets
dave9713's Avatar
Ultra Talker

Posts: 261
Name: David
Location: London
Thanks a lot wayfere and Gilligan i am going to give that a try now...

And no what subliminal message? :P
__________________


Last edited by dave9713 : 04-15-2008 at 03:36 PM.
dave9713 is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 03:38 PM Re: Hyperlink stylesheets
wayfarer07's Avatar
$frontend->developer

Posts: 1,032
Name: Abel Mohler
Location: Asheville, North Carolina USA
See Gilligans explanation, he nailed it.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 06:32 PM Re: Hyperlink stylesheets
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
Quote:
Originally Posted by dave9713 View Post
Thanks a lot wayfere and Gilligan i am going to give that a try now...

And no what subliminal message? :P
Look what's inside that <a> tags
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-16-2008, 04:06 AM Re: Hyperlink stylesheets
dave9713's Avatar
Ultra Talker

Posts: 261
Name: David
Location: London
I know I was playing stupid, I kind of noticed when it appeared on my site

Thanks again...

Dav
__________________

dave9713 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Hyperlink stylesheets
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.20144 seconds with 12 queries