simple css question - define lnik style within a div

Joined
12 Feb 2006
Posts
17,635
Location
Surrey
i know that this must be such a simple thing but i have never actually had to do it so don't know who and can' t seem to get it to work.

Bascially i have put the google referall thing on one of my website which provides a link saying something like, download firefox with google toolbar. The trouble i got is that as its not a typical <a href="#"> type thing that i can't define the stlye and its going to the link style for the main part of the website and not for the side bar and it doens't work as the content and sidebar part of the website is backwards, e.g. content it white bg with black text, sidebar is black bg with white text.

How do i do it so that if tehre any lniks with the "sidebar" div that it does a certain style?

Thanks

sos bad explanation, getting late
 
If the HTML is
Code:
<div id="sidebar"><a href="#">Hello</a></div>
you'd style the link using
Code:
#sidebar a { color:#fff....... }
 
Back
Top Bottom