473,326 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Setting Anchor Style

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!

--
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm
Feb 16 '06 #1
4 1392
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
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Jonathan Wood" <jw***@softcircuits.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
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!

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

Feb 16 '06 #2
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%***************@TK2MSFTNGP12.phx.gbl...
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
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Jonathan Wood" <jw***@softcircuits.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
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!

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


Feb 16 '06 #3
..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" <jw***@softcircuits.com> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
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%***************@TK2MSFTNGP12.phx.gbl...
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
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Jonathan Wood" <jw***@softcircuits.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
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!

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



Feb 16 '06 #4
Excellent. Thanks!

--
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:eY**************@TK2MSFTNGP12.phx.gbl...
.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" <jw***@softcircuits.com> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
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%***************@TK2MSFTNGP12.phx.gbl...
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
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Jonathan Wood" <jw***@softcircuits.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
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!

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



Feb 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ric Castagna | last post by:
Greetings, all... I've got a (for me) stumper... I need to attach what will amount to a float:right; sidebar to a specific location on a page. Not an absolute position, mind you, but to a...
4
by: deko | last post by:
I use named anchors to take users to specific parts of a long page. But I want to add some processing and do some things with my nav bar when users go to certain sections delineated by named...
5
by: mark | r | last post by:
i use document.getelementbyid('id').style.colour= a lot anyone know how to set the style of the link in the following code <li id="tab1"><a href="#">moo</a></li> because setting the colour of...
9
by: kojim | last post by:
Test page: http://www.key-horse.com/linkt.html I have a td that's styled to look something like a button, and on that button is anchor text. So far, I can't make the entire "surface" of the...
10
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. ...
1
by: shapper | last post by:
Hello, I am applying a style to a anchor tag. This anchor is created by an ASP.NET page and is inside a list item. I know the style is working because I applied it to the anchor in a page that...
1
by: praveenb000 | last post by:
Hi every one, I designed a web page, having horizontal menu using UL and LI tags; I need to be set rollover effect for a menu items. whenever user hover on a menu item, the entire...
5
by: Kalpana Durairaj | last post by:
I want to insert my image within search result anchor(say google search results). <a href="http://www.codeproject.com">Code Project <!-- Google search result link--> <img src="myimage.png"...
8
by: azjudd | last post by:
Thank you in advance for your help on this one. I'm using named anchor tags on a FAQ page with questions listed at the top and answers below; a standard jump-to feature. However, anytime an anchor...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.