Solved

CSS text-decoration:none;  and vice versa problems

Posted on 2003-11-19
2
1,842 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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.…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

695 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