Click to See Complete Forum and Search --> : STYLE SHEET code wanted
How do I include an equivalent for:
....<a style="TEXT-DECORATION: none" href="xxx.htm">....
within my head code - to save repeating this over a thousand times in my body code: please? I need it to apply both inside and outside tables.
I admit I haven't fully studied this particular need in the manuals on style sheet coding yet; but even if and when I do, I generally don't get it right, and so it usually doesn't work.
JBJB - (Amateur, as you can guess)
Znupi
11-05-2006, 11:47 AM
in your <head> section, insert this:
<style type="text/css">
a {
text-decoration: none;
}
</style>
Thanks, Znupi. It appears to work my end, but I won't be 100% sure until I see it via the web on someone else's machine.
you may want to add <!-- --> for older browsers too. like this:
<style type="text/css">
<!--
a{color:red;}
-->
</style>
the tree
11-06-2006, 08:01 AM
Older browsers such as what? What browser doesn't either parse or ignore the contents of the style element?
HomerJSimpson
11-06-2006, 11:27 AM
How do I include an equivalent for:
....<a style="TEXT-DECORATION: none" href="xxx.htm">....
within my head code - to save repeating this over a thousand times in my body code: please? I need it to apply both inside and outside tables.
I admit I haven't fully studied this particular need in the manuals on style sheet coding yet; but even if and when I do, I generally don't get it right, and so it usually doesn't work.
JBJB - (Amateur, as you can guess)
What exactly you try to do?
do you try to remove the underline text?
Are you try to include one of your css class into your link? in that case
should like like this <a href="http://www.hello.com" class="menulink"> helloworld</a>
Znupi
11-09-2006, 12:58 PM
Thanks, Znupi. It appears to work my end, but I won't be 100% sure until I see it via the web on someone else's machine.
If it works on your machine it will work anywhere, that's what standards are for...
Anyway, check http://znupi.sytes.net, you will see that none of the links have any underline. That's just what i used, a {text-decoration: none;} ...