View Full Version : Text Decoration Exception
ssskaya
11-02-2003, 12:47 PM
When I use the script:
<style type="text/css">
a:link{
text-decoration: none;
}
a:visited{
text-decoration:none;
}
</style>
it removes all the underlines on the links.
However, there are a few that I would like to leave underlined.
What should I do?
Thanks!
a:active {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
You can actually compress the whole thing down into:
a:link, a:visited, a:active, a:hover {
text-decoration: none}
ssskaya
11-02-2003, 02:38 PM
and as for the solution to my problem?
justame
11-02-2003, 02:42 PM
sss...
"quote...However, there are a few that I would like to leave underlined...endquote"
you havvve to just a ssign® 'different' classes to the links...n' thennn when you 'insert' the link??? you just a pply® the 'class' thattt controls it...
<style type="text/css">
<!--
a.other:link {text-decoration: none;}
-->
</style>
n' thennn tis just a used® like this...
<a href="http://www.domain.com/" class="other">yadda</a>
ssskaya
11-02-2003, 04:40 PM
I did the following and specified the class as other.
Everything is as it should except for the "other". It is not always underlined. What should I do? thanks.
<style type="text/css">
a:link{
text-decoration: none;
}
a:visited{
text-decoration: none;
}
a:hover{
text-decoration: underline;
}
a:other{
text-decoration: underline;
}
</style>
justame
11-02-2003, 05:42 PM
Originally posted by ssskaya
I did the following and specified the class as other
.a:other{
text-decoration: underline;
}
</style>
sss...
ummm nope ya just a didnt®...
try this...
a.other:link {text-decoration: none;}
ssskaya
11-03-2003, 08:50 AM
yes I got it.
but one more thing:
the links to my .oho pages do not work.
is it possible that this is not compatible with php links?
please let me know.
thanks!
justame
11-03-2003, 01:57 PM
sss...
"quote...is it possible that this is not compatible with php links?...endquote"
just a sorry®.../me doesnt do/know php...
'cept donnnt giveup...one of the pros will just a know® how to do n' more than likely just a guide® ya as to howww the code would have to be modified...
just a ps®.../me just a searched® on google for...
define link classes php
n' just a found® this...
http://www.phpbuilder.com/columns/rod19990601.php3
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.