Lesson: Rollover Links
-
A lot of people like designing their links to “react” when the mouse moves over the link. Many Themes are designed to have some kind of such reaction. This is called “hover”.
In your style.css file, you will find many link designs. Let’s just change the look of the ones in the sidebar menu.
Look for the link designs in your sidebar menu, commonly set as something like this:
#menu a
You should see that one plus one that says:
#menu a:hover
That’s the one we want to work on.
For our example, let’s say that the link underlines itself when hovered over. It would look like this:
#menu a:hover {text-decoration:underline;}
What if you want it to change color (say it is black right now) to red and have a blue border on the top and bottom. Change it to:
#menu a:hover {text-decoration:none; color: red; border-top: solid 1px blue; border-bottom: solid 1px blue;}
Is that cool? You can use your imagination and do whatever you want from there. Suggestions on some fun link hovers?
Here are a bunch of resources for creating different kinds of links:
Jakob Nielsen’s Alertbox: Change the Color of Visited Links
Jakob Nielsen’s Alertbox: Guide for Visualizing Links
Accessify’s List-o-Matic – Link List Wizard
Links: No Underline
The impact of links and link text on search engine placement
Colly Logic’s Question Time: Visited Links
Should visited links get distinctive styling?
Same Link – Different Colors
Desilva’s CSS Links
CSS and the Amazing Technicolor Anchors
Cascading Style Sheets Interactive Tutorial for Beginners – Links
HTMLSource: Basic Links
W3 Schools: HTML Links
Simon Willison’s Weblog: Fun With Links
WebDevRes: Link Colors by Section
Westciv’s Complete CSS Guide: Link Pseudo Class Selectors
Jessett.com’s Link Styles
Spoono’s Link Designs
Kali’s Web Shoppe Text and Link Rollovers
About.com’s Web Design: Styling Links with CSS
eei.press’s It’s All In The Links: Readying Publications for the Web
Links Want to Be Links
The Search for the Missing Link
Websitetips’ CSS and Links
- The topic ‘Lesson: Rollover Links’ is closed to new replies.