Solved

CSS text-decoration:none;  and vice versa problems

Posted on 2003-11-19
2
1,835 Views
Last Modified: 2006-11-17
Hi,
I have been struggling with my css. What I want is a link within the text class to be white normally with no underline, then underline when it is hovered over. I thought I knew how to do this, but it seems not.
I'f i remove ".text {font-family:arial;font-size:11px;vertical-align: middle;text-decoration:none;color:#FFFFFF;}" then there is no formatting to the text class

if I remove "text-decoration:none;" from that line then it is always underlined
if I have it as it is then it is never underlined.

Can anyone explain why?

<style type="text/css">
.textheading {font-family:arial;font-size:11px;color:#24599C;font-weight:bold;text-align:left;}
.text {font-family:arial;font-size:11px;vertical-align: middle;text-decoration:none;color:#FFFFFF;}
.texta {font-family:arial;font-size:11px;color:#FFFFFF;font-weight:bold;vertical-align: middle;text-align:center;}
.texttop {font-family:arial;font-size:16px;color:#FFFFFF;text-align:right;vertical-align: text-bottom;}
.texthelp {font-family:arial;font-size:11px;color:#FFFFFF;text-decoration:none;}
a.texthelp:active{color:#FFFFFF;}
a.texthelp:visited{color:#FFFFFF;}
a.texthelp:hover{color:#DD8842;}
a.text:active{color:#FFFFFF;text-decoration:none;vertical-align: middle;}
a.text:visited{color:#FFFFFF;text-decoration:none;vertical-align: middle;}
a.text:hover{vertical-align: middle;}
.box {text-align: center;vertical-align: middle;}

</style>


Thanks
H

www.d6online.co.uk
0
Comment
Question by:wjdashwood
2 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 375 total points
ID: 9780391
Sounds like you want to add:

a.text:hover { text-decoration: underline; }
0
 

Author Comment

by:wjdashwood
ID: 9780493
now I feel really silly :>
Thanks for the help
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now