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)
-   -   have a CSS question (https://gfy.com/showthread.php?t=450168)

GirlNinja 03-30-2005 01:09 PM

have a CSS question
 
how do you set visted link and active link colors in CSS?

chupachups 03-30-2005 01:13 PM

a:link {color: #FF0000}
a:visited {color: #00FF00}
a:hover {color: #FF00FF}
a:active {color: #0000FF}

:upsidedow

fris 03-30-2005 01:13 PM

a:link {
color: #A21569;
}
a:visited {
color: #A21569;
}
a:hover {
color: #A21569;
}
a:active {
color: #A21569;
}

GirlNinja 03-30-2005 01:17 PM

I want to set them inside the body tag:

BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;

}

StuartD 03-30-2005 01:21 PM

Quote:

Originally Posted by GirlNinja
I want to set them inside the body tag:

BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;

}

any special reason why?

GirlNinja 03-30-2005 01:21 PM

Quote:

Originally Posted by NichePay - StuartD
any special reason why?


it's homework

grumpy 03-30-2005 02:05 PM

thats not the proper way to do it.

in css its a seperate tag
in html its like <body alink=green etc

Darkland 03-30-2005 02:17 PM

Well it doesn't really make sense what your trying to do, but here are your options.

1. If you want something simple in the body for links then it would simply be:
<body link="#0000FF" vlink="#66FF33" alink="#FF0000">

2. If it has to be CSS then you can either but this in your header or call to a css sheet:
<style>
a:link {color: #FF0000;
}

a:visited {color: #66FF33;
}

a:active {color: #0000FF;
}
</style>

The only real thing you can do as far as putting css in your body tag is to call to a particular element in the css by use of Class or Id selectors. I am by no means an expert and maybe someone else here knows more than I do and knows a better way to do it.

Best advice to you is go to a book store and pick up Cascading Style Sheets by O'Reilly. CSS is very easy to learn.

evanmorgan 03-30-2005 02:18 PM

I have a CSS question guys, what the hell does it stand for

Darkland 03-30-2005 02:19 PM

Quote:

Originally Posted by evanmorgan
I have a CSS question guys, what the hell does it stand for

Cascading
Style
Sheet

StuartD 03-30-2005 02:19 PM

Quote:

Originally Posted by evanmorgan
I have a CSS question guys, what the hell does it stand for

Cascading Style Sheets

After Shock Media 03-30-2005 02:20 PM

Quote:

Originally Posted by evanmorgan
I have a CSS question guys, what the hell does it stand for

Cascading style sheets if I remember.

Lester 03-30-2005 02:56 PM

http://www.w3schools.com/css/

http://www.w3schools.com/css/css_examples.asp


pretty cool online tutorials

nofx 03-30-2005 04:08 PM

cheater!

swedguy 03-30-2005 04:20 PM

Taken from your other thread

Quote:

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


ssp 03-30-2005 04:55 PM

Quote:

Originally Posted by swedguy
Taken from your other thread

This guy got the right answer. Ignore the rest of the CSS virgins.

iwantchixx 03-30-2005 04:58 PM

Glad to see a CSS thread. I tried it out the other day and it totally didn't work. I'll read those tutorials posted. Thanks.

Darkland 03-30-2005 05:00 PM

Quote:

Originally Posted by ssp
This guy got the right answer. Ignore the rest of the CSS virgins.

Not sure who your talking about but that pretty much just reiterated what I said.

jayeff 03-30-2005 05:01 PM

Quote:

Originally Posted by GirlNinja
I want to set them inside the body tag:

BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;

}

I cannot imagine why you are being asked to do it this way because it is absolutely the wrong way to go about it, but if you insist:

<body style="font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 14pt; color: #193c24; background-color: #e4f9cc;">

You cannot however set the link attributes in this way. For those, the options have already been suggested.

And btw font sizes in pt (as opposed to px) do not render the same size in every browser...

ssp 03-30-2005 05:04 PM

Quote:

Originally Posted by Darkland
Not sure who your talking about but that pretty much just reiterated what I said.

I didn't realise I offended you.


All times are GMT -7. The time now is 07:06 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123