HighDots Forums  

Override HyperLink?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Override HyperLink? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Override HyperLink? - 12-10-2003 , 11:37 AM






I have this in my style sheet:

a:link
{
color : #000000;
text-decoration : None;
font-weight:bolder;
}

a:hover
{
color : #333333;
background-color : Transparent;
font-weight:bolder;
}

a:visited
{
text-decoration : None;
font-weight:bolder;
}

But for a single div tag, I want to have different behaviors for all
<a> tags inside the <div>. How do I do that?

Thanks.

Reply With Quote
  #2  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Override HyperLink? - 12-10-2003 , 12:05 PM






bradwiseathome (AT) hotmail (DOT) com (bdwise) wrote:

Quote:
But for a single div tag, I want to have different behaviors for all
a> tags inside the <div>. How do I do that?
<div class="foo">

..foo a:link {styles}

etc.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #3  
Old   
Peter Foti
 
Posts: n/a

Default Re: Override HyperLink? - 12-10-2003 , 12:31 PM



"bdwise" <bradwiseathome (AT) hotmail (DOT) com> wrote

Quote:
I have this in my style sheet:

a:link
{
color : #000000;
text-decoration : None;
font-weight:bolder;
}

a:hover
{
color : #333333;
background-color : Transparent;
font-weight:bolder;
}

a:visited
{
text-decoration : None;
font-weight:bolder;
}

But for a single div tag, I want to have different behaviors for all
a> tags inside the <div>. How do I do that?
You could apply a class (or ID) to you div, and then write rules for that
class (or ID). For example:

..mydiv a:link
{
color : #ff0000;
text-decoration : None;
font-weight:bolder;
}


<div class="mydiv"><a href="#">This should be red</a></div>

Regards,
Peter Foti




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.