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&copy; <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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -