Suggest You
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Design > How to Style an A to Z Index with CSS

Tags

  • executives
  • straight forward
  • decoration underline
  • index alink

  • Links

  • The New Bankruptcy Law: What You Need To Know
  • How You Can Choose The Appearance Of Your Smile
  • Newsletter Editors Are Writers Too
  • Suggest You - How to Style an A to Z Index with CSS

    Popup - Why Do They Get A Bad Rap?
    Let's not beat around the bush here. We all hate popups. Every time we see one we want to head for the nearest axe and put it through our computer, or at least through the company's web site. But why? There are many HTML functions of web sites that are equally as annoying and ye
    f;
    	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 t

      Criteria in Determining the Best Affiliate Program
      Joining an Affiliate Program is a great way to start earning a sizeable income on the Internet without many of the hassles that come with running your own business.But the problem is… there are so much affiliate programs out there for you. In this article I will guide you to
      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 th

        The Key to Running a Successful Website
        Q1: What is the key to running a successful website?The success of a website is measured by the amount of traffic that it's getting. How many hits, how many uniques, how many visits, how many page impressions and so on.It's logical then, to assume that no matter wh
        ou 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 t

          A Quick Guide To Writing A Marketing Plan
          A marketing plan is a highly researched, well-written document which details all marketing actions necessary to achieve business objectives. It could be for a product, service, brand or a product line. From time to time, you need to stand back and see if your plan is working, and wh
          p>

          #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 t

            Small Business Ideas, Success by Faith
            You have to believe in your small business ideas. What you believe truly and with feeling will become your reality. When you change what you believe, you can change your reality and your performance.Your thoughts and beliefs can either help you achieve your goals or keep you from ac
            m 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 t

              Harnessing the Power of Business Roundtables
              As a business owner, how often do you have the opportunity to talk one-on-one with other owners or executives about ideas? Many small- and medium-sized company owners and executives frequently feel they are working in a vacuum because they rarely have the opportunity to exchange ide
              f;
              	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.

                HTTP = HTML link (for blogs, profiles,phorums):
                <a href="http://www.suggestyou.com/article/85422/suggestyou-How-to-Style-an-A-to-Z-Index-with-CSS.html">How to Style an A to Z Index with CSS</a>

                BB link (for phorums):
                [url=http://www.suggestyou.com/article/85422/suggestyou-How-to-Style-an-A-to-Z-Index-with-CSS.html]How to Style an A to Z Index with CSS[/url]

                Related Articles:

                Project Lifecycle Processes - Phase 2 - Feasibility Study Phase

                Internet Directories

                Advertising on Websites and Considerations

                Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com