I'm playing with some pre-made (free) CSS templates. You get to manipulate them ... and so I am (it's honestly a great way to learn).
I'm stumped on how to add a visited link color to the one I'm using for photo album links. (The entire code is at the end of all this). Currently all the links are color 333 (a gray), and when you mouse over they do turn black. I'd like them to show RED once you've visited a page. I tried adding an "a:visited: to the code like this:
CODE
a {
color: #333;
}
a:visited {
color: #red;
}
a:hover {
text-decoration: none;
color: #000;
}
but that didn't work. So I changed red to "CC0000" ... and that changed EVERY link on the page red.
I'm thinking that perhaps I need to make a new class and give it special link colors? If so, where in the code do I put the new class and it's code so that it doesn't muck up the whole thing?
Any help from any of our CSS Wizards would be humbly and joyously appreciated.
If you want to see the page:
http://www.spatulagraphics.com/oregoncoast.htmlHere's the actual code:
CODE
/* Elements */
* {
color: #666;
}
html, body {
height: 100%;
}
body {
margin: 0;
padding: 0;
background: #FFFFFF url(images/orecoast_images/img01.gif);
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px;
}
h1, h2, h3 {
margin: 0;
padding: 0;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
h4, h5, h6 {
}
p, ol, ul, dl, blockquote {
margin-top: 0;
line-height: 18px;
}
a {
color: #333;
}
a:hover {
text-decoration: none;
color: #000;
}
/* Wrapper */
#wrapper {
width: 600px;
height: 100%;
min-height: 100%;
margin: 0 auto;
background: url(images/orecoast_images//img02.gif) repeat-y;
}
html>body #wrapper {
height: auto;
}
/* Header */
#header {
width: 600px;
height: 104px;
background: url(images/orecoast_images//img03.gif) no-repeat;
}
#header h1 {
float: left;
padding: 35px 0 0 20px;
font-size: 48px;
font-weight: normal;
letter-spacing: -1px;
}
#header h2 {
float: right;
padding: 68px 20px 0 0;
font-size: 13px;
}
#header a {
text-decoration: none;
}
/* Menu */
#menu {
width: 600px;
height: 35px;
padding-top: 13px;
background: url(images/orecoast_images//img04.gif);
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
line-height: normal;
}
#menu li {
display: inline;
}
#menu a {
display: block;
float: left;
width: 112px;
height: 18px;
padding: 4px 4px 0 4px;
text-align: center;
text-decoration: none;
background: url(images/orecoast_images//img05.gif) no-repeat center top;
}
#menu .active a, #menu a:hover {
background-image: url(images/orecoast_images//img06.gif);
}
/* Content */
#content {
width: 600px;
background: url(images/orecoast_imagess//img07.gif);
}
#content h2 {
margin-bottom: 1em;
}
#content h3 {
margin-bottom: 0;
}
#colOne {
float: right;
width: 340px;
padding: 20px 20px 0 20px;
}
#colTwo {
float: left;
width: 180px;
padding: 20px 20px 0 20px;
}
#colTwo ul {
margin-left: 0;
padding-left: 0;
list-style-position: inside;
}
/* Footer */
#footer {
width: 600px;
background: url(imaimages/orecoast_images/ges/img08.gif) no-repeat;
}
#footer p {
margin: 0;
padding: 20px 0 0 0;
text-align: center;
font-size: smaller;
}