Search Optimization
  Home arrow Search Optimization arrow Page 5 - Improve Your Rankings with a Sitemap T...
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
SEO 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? 
SEARCH OPTIMIZATION

Improve Your Rankings with a Sitemap That Works: The CSS
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2005-10-17

    Table of Contents:
  • Improve Your Rankings with a Sitemap That Works: The CSS
  • Begin Improving the Sitemap Visuals
  • Finishing Off the Selectors
  • The Improved Look of the Sitemap
  • Making the Styles Work in Mozilla
  • Sitemap Style Switcher

  • 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


    Improve Your Rankings with a Sitemap That Works: The CSS - Making the Styles Work in Mozilla


    (Page 5 of 6 )

    You’ll need to create a slightly different CSS file that will render the page in the same way in Mozilla browsers, and a script file that will detect the browser and select the stylesheet accordingly.  You could cater for almost any browser, but as MSIE, Firefox, Mozilla and Navigator are easily the most popular, this example script will just target those ones.

    First off, modify the #left and #right ID selectors in the CSS file:

    #left {
      text-align:right;
      float:left;
      width:35%;
      border-width:0;
      margin-left:10%;
      background-color:ffffff;
    }

    #right {
      text-align:left;
      float:right;
      width:35%;
      border-width:0;
      margin-right:10%;
      background-color:ffffff;
    }

    You can see that the width of the elements has been reduced, and a margin attribute added.  For some reason, Mozilla doesn’t like to place elements flush against one another so the second column will overspill to below the first column when the original stylesheet is used.

    To align each box heading against the top and sides of each box correctly, you will also need to remove the top and left attributes from the h1 type selector and replace it with:

    Margin: 0 0 0 0;

    The width of the #block selector should be increased to 100%, and the padding attribute can be safely removed from the #navigation ul and #navigation a selectors.  Finally, a margin-left:30%; attribute should be added to the #level2 ID selector.

    Save the updated CSS file as styleMoz.css and change the link element in the main HTML file so that it links to the new stylesheet.  Open the web page in Mozilla and it should appear as intended.

    More Search Optimization Articles
    More By Dan Wellman


       · Hi all,This artile follows on from the previous Sitemap SEO article and disusses...
       · font-size:12; - 12 what? padding:0 5 0 5; - 5 what?feet? points?...
       · lol, you are right to queery it, I apologise for the lack of precision. I thought...
     

    SEARCH OPTIMIZATION ARTICLES

    - Implementing Six Sigma Methodology for SEO
    - Introducing Six Sigma Methodology for SEO
    - What is Mobile SEO?
    - Using Lynx for SEO Analysis
    - Mastering Lynx (Open Source Text Browser) fo...
    - More Blogging Tips: Cooking with Gas
    - Blogging Tips from Julie and Julia
    - SEO Essentials: the Proper Web Server and Pl...
    - Steps to Higher Rankings and Traffic
    - Building Linkable Pieces and Titles
    - Page Rank Sculpting
    - Page Rank Optimization
    - ClickTale Review
    - Final Issues: Moving Blogger to WordPress wi...
    - Avoid the Mistakes New SEOs Make



     



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