Click to See Complete Forum and Search --> : I'm gonna need some link help, eek! :mad:
jesusfreak7707
02-23-2007, 09:30 PM
here's my problem. my link colors are just plain blue...gr, I can't figure out how to chage them! Also on a website, I've discovered that when I put my mouse over one of their links a link background comes up, anyone know how to do that too? I'm really new at HTML things...:)
NogDog
02-23-2007, 10:29 PM
It is best done via CSS. As a quick example to affect all links on your page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
<title>Untitled</title>
<style type="text/css">
<!--
a:link { color: #336699; } /* normal link color */
a:visited { color: #996633; } /* visited link color */
a:hover { color: #ff0000; background-color: #ffffcc; } /* mouse hover effect */
a:active { color: #ff0000; } /* active link color */
-->
</style>
</head>
<body>
<h1>Sample Page</h1>
<p>Here is <a href="#">a link</a>.</p>
</body>
</html>
Stop by the CSS forum here for lots more info. Also, you might want to take a look at this Beginning CSS Tutorial (http://htmldog.com/guides/cssbeginner/).
macmero
02-25-2007, 01:27 AM
nOgdOg is riGht... Its called a mouseover...
WebJoel
02-25-2007, 11:05 AM
... Its called a mouseover... I have called it that in the vernacular, but more correctly, a "mouseover" is a javascript effect. The CSS method is called "pseudo-class". -A very useful thing. :)
Leslie E.
03-18-2007, 01:48 PM
A site called HTML Goodies handles this pretty well and very simply. Check it out. You can cut and paste the code from there.