tariq_ews Posted November 12, 2007 Share Posted November 12, 2007 can any one explain all of these i can't understanda:link {color:green} a:visited { color:#660000} a:hover {color:black} a:active {color:blue} Link to comment Share on other sites More sharing options...
Ingolme Posted November 12, 2007 Share Posted November 12, 2007 a:link is the style that's applied to a link in its normal state.a:visited is the style of the link if it's already been clicked on before.a:hover is the style of the link while the mouse is over it.a:active is the style of the link while the mouse button is held over the link. Link to comment Share on other sites More sharing options...
tariq_ews Posted November 12, 2007 Author Share Posted November 12, 2007 i have confusion between first and last thanks Ingolme Link to comment Share on other sites More sharing options...
dylan.bathurst Posted November 12, 2007 Share Posted November 12, 2007 a:active is when you have clicked on a link but haven't let the mouse button up yet. It is what the link looks like in a depressed state. Apple.com's nav bar is a good example of a:active graphics. Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted November 15, 2007 Share Posted November 15, 2007 a:link is the style that's applied to a link in its normal state.a:visited is the style of the link if it's already been clicked on before.a:hover is the style of the link while the mouse is over it.a:active is the style of the link while the mouse button is held over the link.Perfectly said Link to comment Share on other sites More sharing options...
Synook Posted November 16, 2007 Share Posted November 16, 2007 a:active is when you have clicked on a link but haven't let the mouse button up yetIn IE even after you release the link it will remain in its active: state. Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted November 16, 2007 Share Posted November 16, 2007 But how will the a:visited is the style of the link if it's already been clicked on before be used, if the link will stay on the "active" color?I thought I knew HTML and CSS very good, I've never heard of the active color staying for the visited color. Do you mean they will stay the same color if you code it that way? Link to comment Share on other sites More sharing options...
jesh Posted November 16, 2007 Share Posted November 16, 2007 But how will the a:visited is the style of the link if it's already been clicked on before be used, if the link will stay on the "active" color? I think he is referring to when you click on a link and release the mouse button, the link will stay "active" until the browser finally decides to, say, direct you to a different URI. Then, when you go back, if that URI is in your browser's history, the link will be "visited". Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted November 16, 2007 Share Posted November 16, 2007 Oh ok. That makes more sense then what he was saying. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.