html - Formatting with CSS stylesheet using link tag -
html - Formatting with CSS stylesheet using link tag -
i have issues printing footer of website. reason, footer prints correctly, link shows normal unformatted link bluish font. going on? style sheet included on page.
<div id='footer'>private site© <a href='mailto: contact@privsite.com'>contact us</a></div> #footer { padding-top: 20px; border: solid #4f7d7d; border-width: 1px 0 0 0; text-align:center; display: inline; } #footer a:visited, #footer a:link { color: #666; text-decoration:none; } #footer a:hover { color: #060; }
if you're using same color link, visited , active states, can create code little simpler like:
#footer a{ color: #666; text-decoration:none; } #footer a:hover{ color:#060; }
also, order of psudeo-classes anchor tags is:
:link - unvisited links :visited - visited links :active - active links :hover - links beingness hovered :focus - links beingness focussed on
html css website
Comments
Post a Comment