Forum Moderators: not2easy
######################
div.top {
margin: 0%; width: 95%; height: 200px; font-family: "sans serif" script, Arial; background: url(../mbglogo-1.gif); background-repeat: no-repeat;
position: relative; left: 2%;
}
/* Link properties for header */
div.top a:link, a:visited, a:active {display: block; font-family: "sans serif", Arial; 1.5em; color:black; text-decoration: none; background-color: #0099CC;}
div.top a:hover {display: block; font-family: Arial; 1.5em; color:black; text-decoration: none; background-color: #8B795E;
}
/* footer div properties */
div.footer {
width: 95%; height: 150px; position: relative; left: 3%; bottom: 3%;
background: url(../bluegrassbtm.jpg); background-repeat: no-repeat; background-position: bottom;
}
/* footer div p properties */
div.footer p {
position: relative; left: 2.5%; bottom: 10px;
}
I hope someone can offer some insite
Please
Thanks, Pat
Also, display block should not interfer with this.
div.top a:link, a:visited, a:active
This will apply your css rules for that declaration to a:links inside div.top, and to ALL a:visited and a:active
Try this instead:
div.top a:link, div.top a:visited, div.top a:active
(Edited to add: Also put them in the right order, as 4css said.)
i thought I could use short hand here and bunch the coding together
div.top a {display:block;background:#09c;text-decoration:none;font:1.5em "sans-serif",arial;}
div.top a:hover {background:#8b795e;} ..instead of this:
div.top a:link, a:visited, a:active {display: block; font-family: "sans serif", Arial; 1.5em; color:black; text-decoration: none; background-color: #0099CC;}
div.top a:hover {display: block; font-family: Arial; 1.5em; color:black; text-decoration: none; background-color: #8B795E;
} Note: there should be a dash in sans-serif in your CSS..