Join James Williamson for an in-depth discussion in this video Overview of CSS sprites, part of CSS: Styling Navigation.
Icons are a very common part of site navigation, and although Native CSS capability have made…it easier to create simple graphics through CSS, there it's going to be times when it…just makes more sense to use an image for a certain icon or graphic.…Of course, using images does increase site overhead, and it dramatically increases the…number of requests made to the server based on how many images and icons you have.…Those server requests can have an extremely negative effect on site performance, especially on mobile devices.…So one way to get around that particular restriction is to use what's known as a CSS Sprite.…
Take our dropdown menu that we created earlier.…I've modified it a little bit and added some icons for each of the menu items.…Now it will be pretty simple to create five separate icons and add them to our links through…using a background image.…However, it's a lot more efficient to just create one single image that contains all…of the icons and then simply reposition the background image based on which link it's inside of.…
- Organizing menus with lists
- Creating block-level links
- Styling links, link states, and image links
- Defining link dimensions
- Controlling link spacing in a menu
- Creating rollovers
- Clearing floats
- Indicating current pages
- Controlling cursor states
- Building dropdown menus
- Creating CSS-only buttons
Skill Level Beginner
1. Structuring Navigation
2. Link Styling Basics
3. Creating a Vertical Menu
4. Creating Horizontal Menus
5. Dropdown Menus
6. Enhancing Navigation with CSS
Additional resources6m 29s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.