Index -> About Us -> Privacy Policy -> Terms & Conditions -> Place Your Link -> Add Your Article
Search:   
leotallboy.com leotallboy.com
 

Search Engine Metrics: Organic Search vs. Paid Placement

Diminishing returns on paid search makes organic search engine optimization high priority for market ... - Lawrence Deon
 

Accessibility: Is your website causing you to loose potential clients?

With millions of people going online everyday the potential for your business is almost unimaginable ... - Leslie Durand
 

10 Ways You Can Fail Fast Online Successfully

how to avoid mistakes when starting a web business...that is what this article is all about - Uzoma Eze
 
 

Dos and Don'ts in Web Design - part 1 (design)

Tables are very flexible. They're able to get almost anything more or less visible on a screen. But ... - Max Paul
 

Is Google Adsense The Easiest Money To Be Had?

With Google Adsense, there is an enormous opportunity to earn an income from your web pages. Yet the ... - Ivan Kelly
 

Successful E-Book Cover Design

How often have you been drawn to a book based on its cover? Odds are you?ve done it quite often. Tha ... - Andy Eaton
 

Web Accessibility Facts: 10 Things You Didn't Know

Accessibility facts: 10 things you didn't know For an accessible report on the good reasons to make ... - Zane Clements
 

Launch your site, before it is finished

When you launch a site, you face three major problems: The search engines don??t know you, the users ... - raoul dobal
 
 

Index › Computers & Software › Website Development
 

How to Style an A to Z Index with CSS

 
Author: Christian Watson

I've always been taken with the way that the BBC styles their A-Z index using a simple list and CSS. However, because they use pixels to set the dimensions of each list item, the design breaks when you increase the text size.

It's always been important to me not to break the browser's ability to resize text and so I thought I'd have a go at creating an A to Z index along the same lines that doesn't break when you resize your text.

The code is actually pretty straight forward. Here's the CSS first:

 #azindex {
background: #75B9D0;
float: left;
margin: 5px 0 20px 10px;
padding: 0px 5px 15px 5px;
width: 520px;
}

 * html #azindex {
padding: 5px 5px 10px 5px;
width: 490px;
}

#index {
font: bold 100% Verdana, Helvetica, sans-serif;
margin: 0;
padding: 0;
}

#index li {
float: left;
height: 2em;
list-style-type: none;
margin: 0.65em 0.3em;
padding: 0;
width: 3em;
}

 * html #index li {
margin: 0.2em 0.2em;
}

#index a:link, #index a:visited {
background: #fff;
color: navy;
display: block;
height: 2em;
padding: 0.75em 0 0 0;
text-align: center;
text-decoration: none;
width: 3em;
}

#index a:hover {
background: #93D1E4;
color: #fff;
text-decoration: underline;
}

And here's the HTML:

< div id="azindex">
  • < a href ="#a"> A
  • < a href ="#b"> B
  • < a href ="#c"> C
  • < a href ="#"> etc
  • < a href ="#z"> Z
    • And there you have it - an easy way to add a nice design to what would otherwise have been a boring list. You can find a link to an example in the resource box below.

      Author Bio:
      Christian Watson is a popular columnist. Christian likes to pen down articles about this area.
      You can search for this article using: How to Style an A to Z Index with CSS, Computers & Software, Website Development
       
       
       

      Related Articles

       
      Top Ten: The Easiest Way to Write a Content-Rich Article for Your Niche
       
      Why Getting Your Name Out There is Easier Than You Think
       
      My Mistakes as a Web Design Newbie
       
      Six Largest Mistakes Made when Hiring a Cabling Contractor
       
      Impact of Press Release in SEO
       
      The 7 Components Of Effective Website Design And Marketing
       
      Choosing Anti-spam Software That is Right for You
       
      Linking for Fun and Profit
       
      Take the Guesswork Out of Niche Marketing
       
      New Concept in Software Protection
       
       
       

       

      Recreation & Entertainment

       

      Society & Communities

       

      Computers & Software

       

      Self Enhancement

       

      Finance & Banking

       

      Issues & News

       

      Indoor Games

       

      Healthcare & Treatment

       

      Health & Therapy

       

      Fashion & Relationships

       

      Government & Politics

       

      Shopping Online

       

      Jobs & Careers

       

      Tour & Travel

       

      Home & Garden

       

      Education & Reference

       

      Vehicles & Automotive

       

      Teens & Children

       

      Drink & Food

       

      Property & Agents

       

      Culture & Art

       

      Adventure & Sports

       

      Science & Research

       

      Companies & Business

       
         Index -> Privacy Policy -> Terms & Conditions
      Copyright © 2008 www.leotallboy.com All Rights Reserved.