Question about CSS and A{ Style/Color (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


Talismanic -> Question about CSS and A{ Style/Color (2/16/2005 18:46:37)

I don't know much about CSS but can usualy alter existing sheets to suit my needs. However I have a problem I cannot figure out. I want to change the link colors for a the "sidetitle."

<h2 align="center" class="sidetitle">Search</h2>

The links in the rest of the page are colored and styled how I want them but for this section I want to make them white. I thought I could do it with the following but it didn't work.
.sidetitle {
	font-family:verdana, arial, sans-serif;
	color:#FFF;
	font-size:11px;
	font-weight:normal;
	line-height:14px;
	padding:2px;
 	margin-top:10px;
	letter-spacing: .1em;
	border-bottom:1px dotted #FFF;
	text-align:center;		  					
 	/* 	background:#FF9933;		*/
}

a.sidetitle:link{
    color: White;
    text-decoration: none
}  
a.sidetitle:visited{
    color: White;
    text-decoration: none
}
a.sidetitle:hover{
	color: Red;
	text-decoration: underline;
}




Lazykatz -> RE: Question about CSS and A{ Style/Color (2/16/2005 21:05:36)

Hi Talismanic,

I was having the same problems in the previous post of yours.

link color help ..please
http://www.frontpagewebmaster.com/m-253022/tm.htm

My solution was to change the class tag in the html on your page.
<a class="alt" href=...

yours would be
<a class="sidetitle" href=...

You'll need to change all of the links you want white.

Hoping this is the answer without seeing your page..
Grizz [8D]




d a v e -> RE: Question about CSS and A{ Style/Color (2/17/2005 8:34:39)

incidentally you can remove this
align="center"
as it's in your stylesheet




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.201172E-02