SPN Logo   Add E-Business Capabilities To Your Website!
  Advertise in SiteProNews SiteProNews Archives About SiteProNews SPN Privacy Statement FeedBack SiteProNews Homepage SiteProNews Image Map SiteProNews IT Career Center
  Stretch Your Ad Budget - Advertise in SiteProNews
    QUICK LINKS
 
JAN. 15,  ISSUE #279
Search the Web

Add your Site to ExactSeek
Online Web Tools
      Free Traffic Exchange
      Free Meta Tag Generator
      Free Site Popularity Checker
      Free Search Engine Submitter
 
Webmaster Tools
Hundreds of Top webmaster apps arranged in 12 major categories. New programs added weekly.

Click Here for Tools

WebSite Tools
Get Top Website Tools. Over 25 FREE Services to choose from.

Visit Bravenet.com

Tip of the Day
While it doesn't have to be large or prominent, you should place an illustration, a graphic or a photo at the top of your home page where it's easy to see. People typically scan websites, and pictures are usually the first elements they scan, even before the headers.

Today's tip is by Kate Schultz, author of Ezine Adrenaline

SPN Site of the Day
The name says it all. SimplyTheBest.net is a great resource site that has just about everything a webmaster could need, including free fonts, an affiliate directory, cgi scripts, a DHTML scripts and Javascript library, a shareware/freeware directory and much more.

Does your web site qualify as a SPN Site of the Day? Webmaster resource sites can apply via email: sotd@sitepronews.com
 

SPN App of the Day
EasyCleaner 1.7 (1.4 MB) searches the Windows' registry for entries that are pointing nowhere and deletes those entries to speed up your system. The program will also let you delete unnecessary files like temps, backups, search for duplicate files and view info about your disk space usage! WinME and WinXP users read the "readMe" file before installing. For Windows 9x/ NT/ ME/ 2000/ XP.

If you have a Webmaster App that you would like listed on the SPN site, send us an email with details to: wapps@sitepronews.com
 
Free Newsletters
Subscribe to SiteProNews, the Net's foremost Webmaster ezine, FreewareFind, the weekly ezine that brings you top freeware apps, or NoviceNews, the weekly PC and Internet Tips ezine.

Just enter your email address in the form below and click the Subscribe button.

Text HTML Newsletter
SiteProNews
AllBusinessNews
FreewareFind
NoviceNews

MyZips.com Downloads
Software Title Downloads
Tetris 4000 10174
HTML Encrypt 2944
Paper Maker 7 2306
MailWasher 2221
SMS Messenger 1996
Add This To Your Site
Must Read Ebooks
SPN offers one of the best eBook libraries on the Web. Check out our current selection of Commercial and 156 plus Free eBooks.

Authors of EBooks may submit their publications to SPN via email: ebooks@sitepronews.com
 

Top 5 DeskTopThemes
DesktopThemes Downloads
Fool Moon Theme 9137
Honolulu Bay 17974
Lighthouse 3931
Summer Day 22010
Butterfly 32505
Powered by AAAScreensavers
Link to SiteProNews
Link your site to SiteProNews, the free, newsletter and resource site for Webmasters.

Or, Add SPN to your site with just 2 lines of JavaScript code. Top content for your site without any of the work.

Check out the SPN Promotion Partners page. Some great sites have opted to support the SPN newsletter

Custom I.E. ToolBar
Put one-click search power at your fingertips. Add a free Custom Toolbar to Internet Explorer. Click Here to download the Toolbar file, then run the file to install. Open I.E., go to the View menu, then Toolbars. Select "ExactSeek I.E. Toolbar" and you're done. One click searching and much more at your fingertips.

SiteProNews Partners
SubmitPlus - Promote your site to 110 search engines... FREE!

Template Monster - World #1 website templates are available for immediate download.

PreWired.com - Providing ISPs & Publishers an Instant Web based revenue stream!

$9.50 Domain Names... Register, transfer or renew your domain names and get a FREE Service Suite.

NetMechanic - Web Tools For Site Maintenance, Promotion, Browser Compatibility & More.

TrafficZap - Links that get you clicks. Free Meta-tag Generator, Popularity checker and Site Submitter.

 

ExactSeek
FreewareFind
Template Monster
DesignerWiz
Add Me!
SubmitExpress
RankPilot
Submit Plus
NetMechanic
Web Resources
Free Web Hosting
SubmitSolution.com
$9.50 Domain Names

Using Style Sheets
in Your Web Site

By Les Goss (c) 2002
How would you like to have a tool that could make your web site load faster? What if it could also allow you to make changes across your entire site with just a few keystrokes? And while we're at it, let's make it the standard for new browsers, so that your site will still work properly in the future.

Well, that tool is here now and it's called Cascading Style Sheets (CSS). CSS is the part of the code that defines the appearance of a web site.

TopDog Pro - Search Engine Analyzer/Submitter - FREE Download!


HTML 4 is the current version of the markup language that is used to control the structure of a web page. It was created by the World Wide Web Consortium several years ago, and one of the main goals of this version was to separate the structure of a web page from its presentation. This means that HTML is used only to create the overall structure of a web page, which includes things like headlines and paragraphs. This leaves CSS to describe what different size headlines should look like, and how paragraphs will appear on the screen.

The problem with many sites today is that they were constructed before HTML 4 had been released, or by designers who hadn't yet made the transition. These sites are more difficult to debug or update because the HTML was used in many creative ways to define the presentation as well as the structure, and it wasn't designed to do that. They also contain a lot more code, since each headline, paragraph and other text had to have its font, font size and color defined. This extra code adds to the time it takes to download a web page into someone's browser.

These sites are time-consuming to update, as well. If you decide to make all your largest headlines red instead of blue, each one has to be changed one at a time. If enough changes need to be made, there's always the chance one will be missed, or perhaps changed incorrectly.

CSS to the Rescue!

The CSS for your web site is in a text document separate from the rest of the HTML code. In the head, or invisible, part of the page code, is a line that links that web page to the style sheet. When a browser reads the code, it uses the information in the CSS to define the way the page looks.

Add E-Business Capabilities to Your Website - 10% Off for SPN Subscribers!


So for instance you might write your CSS to make your largest headlines with a size of 20 pixels, in blue, using the Verdana font. The CSS code to create this looks like this:

<h1 { font-family: Verdana, Helvetica, Arial, san serif;
font-size: 20px; color: blue;}>

Remember, this will be just part of the CSS code that is in a text document that might have been typed up using Notepad, or any other word processor. The reason several fonts are listed is because HTML can only use fonts that are already on the visitor's computer, and since we can't know for sure what everyone has, we give the browser choices. If the browser has Verdana, that's the font this headline will use. If it doesn't have Verdana, it checks for Helvetica, and so on. If the computer doesn't have any of the first three, it will use whatever default san serif font is on that machine.

When a headline is created for a web page, the code might look like this:

<h1>Buy Now!</h1>

If the page with this code is linked to the style sheet with the code we showed previously, this headline will be in 20 pixel blue Verdana on every computer that views the page. Without using CSS, this code will look different in different browsers, depending on what defaults have been set. On my computer, this would be in 24 pixel New Times Roman, and it would be black.

In the days before CSS, in order to get this headline the way we wanted it, we'd have to specifically spell out every feature, and the HTML code, which we saw a moment ago was so short, now would look like this:

<h1><font face="Verdana, Helvetica, Arial, sans-serif"
color="blue" size="4">Buy Now!</font></h1>

Make Things Simple with CSS

That's quite a bit of extra unnecessary code, especially when you multiply it by the number of headlines, paragraphs, lists, captions and links that also need this treatment. It's so much easier to define each type of text in CSS once and let all the pages linked to it use those settings.

You can now see why modifying a site would be so much easier with CSS. Without it, if you wanted the headlines changed from blue to navy, and the text in each paragraph made slightly larger, every headline and paragraph in the entire site would have to be changed individually.

With CSS, you make a small change to the headline code, another small change to the paragraph code, and your whole site is quickly and uniformly changed! This is just one simple example of the many ways CSS can be used in a web site.

Conclusion

Older browsers don't recognize all the current CSS standards, so many of its most powerful features don't work in them. As newer browsers are developed they are including more and more support for CSS standards, so in the future we can look forward to having more control over the layout and appearance of our web pages.

About The Author
Les Goss is the head honcho at ZebraMoon Web Design, where he educates his business clients as he builds their web sites. To subscribe to the free email newsletter list or to find out more about how we can serve you, please come to ZebraMoon Web Design.


Click Here for Printer Friendly Version of this Article


Webmaster Resource Sites & Services

TheCgiSite.com - A directory of programming resources.

Add Me!... A leading resource for website and e-business promotion.

Web-Source.net - Your Guide to Professional Web Site Design & Development

Submitsolution.com - Top 10 listings Guaranteed in Yahoo, Altavista, MSN, and more.

FreeTechMail.org - A search engine where you can preview and subscribe to thousands of IT newsletters.

BraveNet... Top Rated Web Tools for Webmasters.

 

  SiteProNews - The Net's most widely read Webmaster newsletter
 

Previous SPN Sites of the Day      Previous SPN Tips of the Day       Previous SPN WebMaster Apps of the Day      

GoArticles - Search 8,600+ Articles       NoviceNews - PC & Internet Tips       EzineHub - Search 4,200+ Newsletters      


©Copyright 2002 Jayde Online, Inc. All rights reserved. Web design by ControlV.