Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-07-2003, 07:58 AM   PM User | #1
nickbarresi
New Coder

 
Join Date: Oct 2002
Location: California
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
nickbarresi is an unknown quantity at this point
Question with CSS link styles...

My current style sheet makes all links the same style...is there any way to make two seperate styles for links? And how would I implement them?

<a href="someURL">Hello</a>

would it be...

<a href="someURL" style=XXXX>Hello</a>

???

I'm lost
nickbarresi is offline   Reply With Quote
Old 01-07-2003, 08:40 AM   PM User | #2
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Sure!

Nick,

definitely; you can use the style attribute to add a style to one specific link, or use any of the selector mechanisms available in CSS to assign styles to a certain group of links.

An example using a class selector:

a.mylink {color: black; text-decoration: none}

in the style sheet and

<a class="mylink" href="foo.htm">Foo</a>

in the page will show this link, and in fact all links using this class, in black without underlining.

An example using an inline style for one specific link:

<a style="color: red" href="bar.htm">Bar</a>

will show this one link in red.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 01-07-2003, 08:42 AM   PM User | #3
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
CSS!

By the way, wrong forum again...
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 01-07-2003, 09:44 AM   PM User | #4
nickbarresi
New Coder

 
Join Date: Oct 2002
Location: California
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
nickbarresi is an unknown quantity at this point
Lightbulb

ooooo sorry bout that, didn't see the other forums

Thanks for your help, that will assist me greatly!
nickbarresi is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

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

Forum Jump


All times are GMT +1. The time now is 02:29 PM.


Advertisement
Log in to turn off these ads.