<

Navigation Hover Effects with CSS Sprites

Posted on
6,415 Points
315 Views
1 Endorsement
Last Modified:
Published
Experience Level: Beginner
5:15
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS
(Continuation of the CSS Image Sprite tutorial)

Video Steps

1. Create a parent ID for all the list items - Specify position: absolute and display: block

2. Style all the links in the parent ID to have equal height and display:block as well

3. Specify IDs for each icon - For each ID, specify the width of the icon and the left-position of it - Set the image as the background of the list item, but specify the location of the icon within the image

4. Specify a:hover properties for each ID - Copy the background property of the original IDs, just adjust the y coordinate

5. Set up the list in HTML - Use an unordered list with the parent ID and list items with the IDs created for each icon

1
0 Comments

Suggested Videos

Title Views Activity
Drop-Cap Effect in CSS 90
Embedded Audio in HTML5 183
Introduction to jQuery (Part 1) 846
Lists and Links 106
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month