Is it possible to change the link, active link and visited link colors in the <body> tag? Something like this <body style=" ...... "> ?
| SitePoint Sponsor |
Is it possible to change the link, active link and visited link colors in the <body> tag? Something like this <body style=" ...... "> ?
Ballot-Box.net - free polls for webmasters
Ravelly.com - free message board
FormLog.com - free form processor





Nope, it's not possible to do within the body's style attribute.
Why can't you specify it elsewhere, like in the StyleSheet?
★ James Padolsey
–––––––––––––––––––––––––––––––––––––––
Awesome JavaScript Zoomer (demo here)
'Ajaxy' - Ajax integration solution (demo here)


You can style links with CSS the same as for other tags. By using tag selectors
a
a:visited
a:hover
a:active
But be careful, the "default" style is what most users expect of links, and changing them can have negative consequences (if they aren't recognized as links, they won't get clicked).
HTML Code:<html><body> <a href="" style="color: #000;text-decoration: none;"> link that won't get clicked </a> </body></html>
Bookmarks