Home arrow Style Sheets arrow Styling a Blog`s Links Bar with CSS Sprites
STYLE SHEETS

Styling a Blog`s Links Bar with CSS Sprites


In this fifth article of a seven-part series, I demonstrate how to use a set of CSS sprites to define the visual style corresponding to the “normal” state of a navigation bar of a fictional blog site. The most complex facet of this process was to create the background image containing the corresponding sprites; the rest of the procedure merely involves manipulating the image’s X and Y coordinates via CSS.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
March 05, 2010
TABLE OF CONTENTS:
  1. · Styling a Blog`s Links Bar with CSS Sprites
  2. · Review: the source code so far
  3. · Using CSS sprites for styling the normal state of the navigation bar
  4. · Binding the CSS styles to the blog's structural markup

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Styling a Blog`s Links Bar with CSS Sprites
(Page 1 of 4 )

If you really want to provide users of your web site with a more pleasant surfing experience when moving between its different sections, then you should consider building the site's main navigation bar using CSS sprites. This handy technique, when employed in conjunction with a well-trusted image replacement method, permits you to create image-based interfaces that are not only attractive to human eyes, but highly responsive as well. In summary, you get the best of both worlds.

If all of these advantages aren't enough for you, let me tell you that implementing CSS sprites on web pages is a straightforward process that doesn't require any special skills or even a complete background in the most obscure parts of the CSS specification. What's more, if you're familiar with the basic features of your favorite image editor and know how to use CSS to display background graphics, then you should be glad, because you're on the right path.

Surely, if you've been a loyal follower of this series and have already read all of the tutorials that precede this one, then you now know how to take advantage of the functionality offered by CSS sprites for building eye-catching navigational bars. In those articles I used code samples to demonstrate how to accomplish this in a fairly easy way.

Speaking more specifically, in the previous part I started developing the landing page of a fictional blog site, which will include a navigation bar whose corresponding sections will be decorated using a brand new set of CSS sprites. So far, it's fair to say that the page looks incomplete, as the only area that has been properly styled is its header. Nonetheless, this is about to change, since in the following lines I'll be creating a background image to define the visual presentation of the different states of the bar.

Now, it's time to discover the real power behind using CSS sprites. Let's jump in!


blog comments powered by Disqus
STYLE SHEETS ARTICLES

- CSS Combinators: Using General Siblings
- Intro to CSS Combinators
- CSS Semicircles and Web Page Headers
- Drawing Circular Shapes with CSS3 and Border...
- More CSS Pagination Link Templates
- CSS Pagination Links
- Animated CSS3 Image Gallery: Advanced Transi...
- CSS3 Animated Image Gallery: Transitions
- CSS3 Properties: Fixed Heights with box-sizi...
- CSS3 Properties: Altering Strokes and 3D Eff...
- CSS3 Properties: Text-Stroke
- CSS3 Transitions: Width and Height Properties
- Creating a Drop Down Menu in CSS3
- Intro to CSS Transitions
- Create a Simple Transitioning Link Bar with ...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials