Jump to content

I Have A Question About Style Sheets


camdaddy09

Recommended Posts

how do i link two separate style sheets to different links in my webpage? i want to apply a link style (with hover and visited also) to the links in the header part of my page and then apply a completely different links style to the footer of my page. how would i do this?

Link to comment
Share on other sites

If your header and footer sections are contained within an element with an ID, then this will work:

#header a { color: blue; }#header a:hover { color: red; }#footer a { color: black; }#footer a:hover { color: blue; }

Link to comment
Share on other sites

If your header and footer sections are contained within an element with an ID, then this will work:
#header a { color: blue; }#header a:hover { color: red; }#footer a { color: black; }#footer a:hover { color: blue; }

It worked perfectly, thanks. i knew that i had to somehow differentiate between the two but i didnt know exactly how.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...