camdaddy09 Posted August 13, 2009 Share Posted August 13, 2009 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 More sharing options...
Ingolme Posted August 13, 2009 Share Posted August 13, 2009 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 More sharing options...
camdaddy09 Posted August 13, 2009 Author Share Posted August 13, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.