Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Classes, Anchors, and Divs? 1

Status
Not open for further replies.

ThatRickGuy

Programmer
Oct 12, 2001
3,841
0
0
US
Hi Guys,
I am toying with a third party app that I don't have a lot of access to, but I'm trying to adjust the CSS to improve the look/feel of my site.

I can create CSS for the site, but some elements point to classes that I do not have access to change. Specifically, there are blocks that are enclosed in a DIV that is has it's style assigned to a specific class. What I want to do is change the color/decoration of all of the links inside the DIV, with out having to explicitly set the style of each Anchor.

Is it possible to set CSS for anchors for a given class, and will each of the anchors in that DIV use that CSS class with out being explicitly directed to?

Is there some syntax that would allow me to do something like:
Code:
.MessageBodyCell1
{
     BACKGROUND-COLOR: #000000;
}
.MessageBodyCell1.A:link 
{
	COLOR: #FF0000; 
}

and then in my HTML have:

Code:
<div class="MessageBodyCell1">
 <a href="...">Test</a>
</div>

And have the word "Test" show up as red on a black background?

Thanks,
-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top