![]() |
how do you set vlink and alink colors inside the body tag in CSS
i have to but it in the body tag for some reason, it's part of some "homework"
BODY { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 14pt; color: 193C24; background-color: E4F9CC; } |
How many threads do you need asking this?
Anyway, there is no way to do that using css. You have to set the a tags separate from the body tags. |
Quote:
|
Quote:
If you insist on using CSS, then you have to set the a tags separate of the body tags. |
Are you sure you have to put it *in* the body element? Usually it's more like:
BODY { background: #000000 blah blah whatever; } A:LINK { color: #000000; } A:VISITED { color: #000000; } A:ACTIVE { color: #000000; } Otherwise, I think you'd have to use the body tag. |
Quote:
BODY { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 14pt; color: 193C24; background-color: E4F9CC; } A:LINK { color: #000000; } A:VISITED { color: #000000; } A:ACTIVE { color: #000000; } :upsidedow |
If you do like this, it will only belong to the body tag
body a:active { color:white} body a:visited{ color:white} But it's basically the same since both covers the whole html page a:active {color:white} a:visited{ color:white} Search on CSS childs and you can read about it. |
All times are GMT -7. The time now is 09:38 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123