Style Sheets
  Home arrow Style Sheets arrow Styling a Blog`s Links Bar with CSS Sprite...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

Styling a Blog`s Links Bar with CSS Sprites
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2010-03-05

    Table of Contents:
  • Styling a Blog`s Links Bar with CSS Sprites
  • Review: the source code so far
  • Using CSS sprites for styling the normal state of the navigation bar
  • Binding the CSS styles to the blog's structural markup

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Styling a Blog`s Links Bar with CSS Sprites


    (Page 1 of 4 )

    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.

    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!

    More Style Sheets Articles
    More By Alejandro Gervasio


       · This fifth article of the series goes through the development of the "normal" state...
     

    STYLE SHEETS ARTICLES

    - Styling Pseudo Classes with the RGBA CSS3 Pr...
    - Controlling Overall Transparency of an HTML ...
    - Altering the Border Opacity of an HTML Eleme...
    - The RGBA CSS3 Property: an Overview
    - Using Span Tags to Include Logos in Web Pages
    - Using a Single H1 Element to Include Logos i...
    - Combining Divs and H1 Elements to Include Lo...
    - Semantically Including Logos in Web Pages
    - Adding Text Indentation to Style Code Blocks...
    - Decorating Line Numbers in Code Blocks Style...
    - Changing the Color of Code Lines with CSS
    - Using Ordered Lists to Style Code Blocks wit...
    - Using a Zebra Background Effect to Style Cod...
    - Displaying Rounded Corners Built with CSS3 i...
    - Building Rounded Corners with CSS3`s -webkit...







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek