![]() |
have a CSS question
how do you set visted link and active link colors in CSS?
|
a:link {color: #FF0000}
a:visited {color: #00FF00} a:hover {color: #FF00FF} a:active {color: #0000FF} :upsidedow |
a:link {
color: #A21569; } a:visited { color: #A21569; } a:hover { color: #A21569; } a:active { color: #A21569; } |
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; } |
Quote:
|
Quote:
it's homework |
thats not the proper way to do it.
in css its a seperate tag in html its like <body alink=green etc |
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. |
I have a CSS question guys, what the hell does it stand for
|
Quote:
Style Sheet |
Quote:
|
Quote:
|
http://www.w3schools.com/css/
http://www.w3schools.com/css/css_examples.asp pretty cool online tutorials |
cheater!
|
Taken from your other thread
Quote:
|
Quote:
|
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.
|
Quote:
|
Quote:
<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... |
Quote:
|
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