Sent by Joe Huggins on 3 January 2005 19:07
I am a bit unclear if you want the same style to each element <a>. Also, I am not sure why the inner
<div> has an in-line style applied. So, what I would do is first take that inner <div> and change
the in-line style to another id, and I will call it #nav (with all the styles applied from the
in-line listing).
Assuming you do then want each <a> to be the same you could do the following CSS:
div#nav a {style rules here}
div#nav a:link {style rules here}
div#nav a:visited {style rules here}
div#nav a:hover {style rules here}
div#nav a:active {style rules here}
-----Original Message-----
From: [EMAIL-REMOVED] on behalf of Marty Martin
Sent: Mon 1/3/2005 11:38 AM
To: [EMAIL-REMOVED]
Cc:
Subject: [css-d] how would i select
Let's say I have this code:
<div id="top">
<div style="border: 1px solid ##666;">
<a href="##">home</a>
<a href="##">contact us</a>
<a href="##">history of sharing</a></div>
</div>
How would I use CSS to select the 2nd and 3rd <a> to apply styles to
them? Is it possible?
Thanks in advance!
--
Marty Martin
Web Developer
ICONS, Inc.
Internet Development | Marketing | Support
e: [EMAIL-REMOVED]
p: 540.343.8322 | f: 540.342.0691
w: http://icn.net
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/