The Power of CSS

CSS or cascading style sheets are used to create awhen they are really embedded right into your
set of styles that can be applied to your fonts,cascading style sheet. Lets take the rollover button
tables and most other attributes of your web page.effect one step further. Suppose you want to
These styles allow you to create a much cleaner,manipulate your web page code in a way that your
faster web page that search engines love and alsorelevant keyword phrase(s) appear at the top of the
makes life much easier on the designer when globalpage. With CSS, you have the ability to do this with
changes to these styles need to be applied. It is alsoease. CSS allows you not only to adjust font and
always critical to always keep in mind your targetcolor attributes, but you can also adjust the spacing
audience and the average internet connection speedand alignment of certain elements on your web page.
these users have. By using styles sheets to their fullSo with this in mind, creating your table structure
advantage, you can help keep your web page sizeusingtags allows you to layout your page in a way
down to a minimum.that the search engine spiders see your important,
When you sit down to think about the sitemap andrelevant keyword phrase(s) ahead of your tables and
the navigational structure of your website, youimages. The next step is to incorporate your
should consider using cascading style sheetscascading style sheet so you can still use a header
wherever possible. This includes everything from yourdesigned using graphics, while placing your important
text attributes to your table padding. Each page youkeyword phrase(s) at the top of your web page
create should be tailored around one or twowhich search engines love. In your style sheet, add
keyword phrases in order to maximize the relevancythese two styles:
of the content being displayed to the various internet#header{ width: 373px; height: 53px;
browsers surfing your website. Using this techniquebackground-image: url(header.gif); background-repeat:
allows you to have a web page which, in the searchno-repeat; color: f7f7f7; }h1{ text-indent: -100em;
engines spiders view, only contains html and keywordmargin:0px,0px,0px,0px; }
rich text.As you can see, in the #header style, we have
Let's use an example to illustrate the power andincluded the dimensions of the image along with
capability of cascading style sheets.including the image you want to serve as your
Graphic Buttons with Rollover: In the past weheader as the background for this style. Make sure
created rollover buttons using graphics programs likeyou input the correct dimensions for the header
Adobe Photoshop and/or Macromedia Fireworks, andimage. This needs to be accurate as the style sheet
embedded them on our web page with all thewill only display what can fit in the outlined dimensions
unfriendly code that is needed for the rollover effect.and will also affect the spacing of your tables and
The problem with doing this can be two-fold. First,web page. On the h1 style, we have indicated we do
search engines prefer text links because text isnot want the text visible on the web page, rather
always optimal and you can also put your desiredthe header image we created which is contained in
keywords in the text of the link, which can helpthe #header style. We are able to do this by using
boost your rankings. Images are also seen as inferiorthe text-indent: -100em attribute of the h1 style. You
to html, since search engine spiders are not able toalso want to include the margin attribute so you
scan images as effectively as plain text. When youavoid any unwanted spacing underneath the text
create navigation with graphical buttons, you lose outcontained in thetag. Then, on your actual web page,
on both of these benefits and risk having some ofput your keywords at the top of the page in antag
your web pages not indexed by the search engineand include the #header style. This is what your code
spiders. This is why well-optimized web pages haveshould look like for the text you are trying to display
text links at the bottom of the page; text makes itas anwhile displaying only the header graphic. (
easier for search engines to spider your site andYOUR IMPORTANT KEYWORD PHRASE
compensate for the primary navigation menu.). This can give you a HUGE advantage when trying
CSS allows you to create these buttons withoutto optimize a website for a very competitive
having any images visible on your html code (which iscategory and achieve top 10 search engine rankings
where search engines spider). Furthermore, you canby making your keywords visible right at the top of
embed your desired keyword phrase(s) as the textthe page, in antag, while actually displaying a nice
for your links. Try these steps and you will see howheader graphic to the person browsing your website.
easy it is to simulate the rollover button effect, howAlthough many changes have occurred in the last
much more effective your web site will be for thefew weeks in terms of Yahoo! adopting their own
desired targeted keywords and how much fastersearch engine spider and listings, Google making the
your web page will be to load.switch to geo targeting and the ever growing
Your CSS Code: In CSS you have the ability toimportance in maintaining quality, theme related link
create a background image on a particular style.partners, the placement of your keywords is still an
Create your table with an individual cell for each link.important factor in adding to your search engine
In your CSS styles, you need to update the a:link andoptimization and ranking success.
a:hover styles. For the a:link, make the graphic youAnother good practice when designing web pages
have created to act as your button and/or theusing CSS is to make sure your web page conforms
background image for that style. Then update theto W3 standards for both HTML and CSS. This is
font attributes so the text will be visible on top ofcritical in ensuring your website works across all
the background image. On the a:hover style, put theplatforms and browsers and also helps to ensure ALL
over state of the button as the background of thatsearch engine spiders can index your site easily and
style and update the font attributes so you can seeeffectively. There really is nothing worse then
the text on the page. This is what your actual CSSdirecting a few hundred hits per day in search engine
code should look like for the a:link and a:hovertraffic and having 50% of those people unable to
styles:a:link{ font-family: Verdana, Arial, Helvetica,view your website because of poor coding,
sans-serif; font-style: normal; font-variant: normal;corrupted style sheets or broken links. Always test
text-decoration: underline; color: #000000;your web site and have a friend navigate through
font-weight: bold; width: 175px; height: 100px;your website both on a MAC and PC to ensure there
background-image: url(images/home-button.gif);are in fact no broken links and all pages are easily
background-repeat: no-repeat; }a:hover{ font-family:accessible and error free.
Verdana, Arial, Helvetica, sans-serif; font-style: normal;The power of cascading style sheets is incredible.
font-variant: normal; text-decoration: underline; color:The above example only scratches the surface of
#006699; font-weight: bold; width: 175px; height:how much you can do for your page in terms of
100px; background-image: url(imagesaccessibility, functionality, speed and clean html. You
home-button-over.gif); background-repeat: no-repeat;can adjust your scrollbar, background image, and
}even the padding of your tables all in your style
This effect creates the perception of a rolloversheet. The only key is that you create an external
image. To site visitors, it will appear to be a regularcss and link it from the web page using those styles
rollover button created out of two graphics. The onlyfile ( ). This way, you don't add any cumbersome
difference is your cascading style sheet contains thecode on your page that will risk confusing the search
images for both states of the link. This way whenengine spiders and use CSS to its full advantage.
search engine spiders visit your website, they willBy adjusting all these attributes in an externally linked
only see clean html code - without any images usedcss file, you are keeping your web page small in
for navigation - and your keyword-rich text. As well,physical size along with ensuring good clean html code
your web page should load much faster and bewhich as we have mentioned above, search engine
compatible with anyone still using an old dial-upspiders love! As well, css makes life MUCH easier on
connection.the web designer when future updates need to be
CSS Above and Beyond: With cascading style sheets,made. It is far more efficient to manage a website
as outlined above, you can create the perception tousing cascading style sheets then one that contains
the user that images are present on the actual pagegood old font tags.