Solved

CSS text-decoration:none;  and vice versa problems

Posted on 2003-11-19
2
1,837 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Re-position sub-options beneath the TAB 7 74
CSS Font Arial Narrow 1 26
stop navigation from wrapping 7 47
Centering Vertically 3 27
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…

919 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

14 Experts available now in Live!

Get 1:1 Help Now