Setting Anchor Style

J

Jonathan Wood

I'm pretty new to ASP.NET.

I have some panels with text in them. These panels also include hyperlinks.
I created a stylesheet and the panel's CssStyle property is set to the
corresponding style.

The text appears using the expected styles. However, the hyperlinks do not.
Is there an easy way to have all the links use the same style, or do I need
to set the style of each link?

Thanks!
 
K

Karl Seguin [MVP]

so you have something like

cssClass="Content"


and then

..Content
{
}

or

div.Content
{

}

or something

then you can just do

..Content a
{

}

which will apply the style to all a tags inside the .Conte

Karl
 
J

Jonathan Wood

Hi Karl,

Yeah, that seems to do the job. Thanks!

A couple of questions:

+ Is there a shortcut way to have .Content a be the same as .Content without
simply copying all the settings from .Content to .Content a?

+ Also, just out of curiousity, I belive there is also a way to modify
visited, unvisited, etc. anchors as well. Do you happen to know the syntax
for that?

Thanks again.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:e%[email protected]...
 
K

Karl Seguin [MVP]

..Content, .Content a
{
}

a:visited
a:link

so
Content a:visited{ }


here's the CSS reference I use, by the way:
http://www.blooberry.com/indexdot/css/

Karl
--
http://www.openmymind.net/



Jonathan Wood said:
Hi Karl,

Yeah, that seems to do the job. Thanks!

A couple of questions:

+ Is there a shortcut way to have .Content a be the same as .Content
without simply copying all the settings from .Content to .Content a?

+ Also, just out of curiousity, I belive there is also a way to modify
visited, unvisited, etc. anchors as well. Do you happen to know the syntax
for that?

Thanks again.

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:e%[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top