Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Setting Anchor Style

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan Wood - 16 Feb 2006 18:22 GMT
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!

Signature

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

Karl Seguin [MVP] - 16 Feb 2006 19:35 GMT
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
Signature

http://www.openmymind.net/
http://www.fuelindustries.com/

> I'm pretty new to ASP.NET.
>
[quoted text clipped - 7 lines]
>
> Thanks!
Jonathan Wood - 16 Feb 2006 22:47 GMT
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.

Signature

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

> so you have something like
>
[quoted text clipped - 36 lines]
>>
>> Thanks!
Karl Seguin [MVP] - 16 Feb 2006 23:46 GMT
.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
Signature

http://www.openmymind.net/

> Hi Karl,
>
[quoted text clipped - 51 lines]
>>>
>>> Thanks!
Jonathan Wood - 17 Feb 2006 23:45 GMT
Excellent. Thanks!

Signature

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

> .Content, .Content a
> {
[quoted text clipped - 65 lines]
>>>>
>>>> Thanks!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.