GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how do you set vlink and alink colors inside the body tag in CSS (https://gfy.com/showthread.php?t=450178)

GirlNinja 03-30-2005 01:27 PM

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;

}

StuartD 03-30-2005 01:36 PM

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.

GirlNinja 03-30-2005 01:42 PM

Quote:

Originally Posted by NichePay - StuartD
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.

two seemed to work out fine, and are you sure there's no way?

StuartD 03-30-2005 01:44 PM

Quote:

Originally Posted by GirlNinja
two seemed to work out fine, and are you sure there's no way?

Yes, I'm sure. You can set vlinks and hlinks in the <body> tag if you wish, but that's separate of CSS.
If you insist on using CSS, then you have to set the a tags separate of the body tags.

Holly 03-30-2005 02:01 PM

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.

Tala 03-30-2005 02:03 PM

Quote:

Originally Posted by Holly
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.

Example using your own code:

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

swedguy 03-30-2005 02:24 PM

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