how do you set visted link and active link colors in CSS?
have a CSS question
Collapse
X
-
-
a:link {
color: #A21569;
}
a:visited {
color: #A21569;
}
a:hover {
color: #A21569;
}
a:active {
color: #A21569;
}Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

Totally Free TemplatesComment
-
any special reason why?Originally posted by GirlNinjaI want to set them inside the body tag:
BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;
}Comment
-
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.Comment
-
I have a CSS question guys, what the hell does it stand forPerfect for Asian, Petite,Teen, Exotic, Bikini, Solo girl, Panty, Softcore and Cameltoe Traffic
100% Exclusive Girls and ContentComment
-
CascadingOriginally posted by evanmorganI have a CSS question guys, what the hell does it stand for
Style
SheetComment
-
Cascading Style SheetsOriginally posted by evanmorganI have a CSS question guys, what the hell does it stand forComment
-
Cascading style sheets if I remember.Originally posted by evanmorganI have a CSS question guys, what the hell does it stand forComment
-
http://www.w3schools.com/css/
http://www.w3schools.com/css/css_examples.asp
pretty cool online tutorialsI have no sig...sighComment
-
Taken from your other thread
Originally posted by swedguyIf 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.Comment
-
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.Comment
-
Not sure who your talking about but that pretty much just reiterated what I said.Originally posted by sspThis guy got the right answer. Ignore the rest of the CSS virgins.Comment
-
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:Originally posted by GirlNinjaI want to set them inside the body tag:
BODY {
font-family: "Trebuchet MS", Arial, sans-serif;
font-size: 14pt;
color: 193c24;
background-color: e4f9cc;
}
<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...Last edited by jayeff; 03-30-2005, 03:03 PM.Comment




Comment