Designing with Style - Get Articles by Richard Igoe

Get Articles
 
  

submit your own reprintable article

Article Categories

Accepting Credit Cards Online
Accounting and Book-Keeping
Advertising
Affiliate and Associate Programs
Articles and Article Promotion
Autoresponders and How To Use Them
Bonuses and Freebies
Branding
Business Ideas
Business Practice
Communication Skills
Competition and Your Competitors
Copywriting
Creativity and Ideas
Customer Service and Support
Domains and Domain Names
Due Diligence
E-Commerce
Ebooks and Ebook Writing
Education
Email List Building
Email Marketing
Ethics and Morals
Expert Status
Ezines and Email Newsletters
Family
Forums
Fraud and Scams
Goal Setting
Graphics and Graphic Design
Guarantees
Health
Internet Auctions
Internet Marketing
Investment and Investing
Job and Career
Joint Ventures
Lead Generation
Legislation and Legal Issues
Management and Best Practice
Motivation
Negotiation
Networking
News Releases and Public Relations
Niche Marketing
Outsourcing
Pay Per Click Search Engines
PC Security and Viruses
Pricing and Supply and Demand
Product Creation
Public Speaking
Publicity
Relationship Building
Reprint Rights
Revenue Generation
Search Engines and SEO
Site Stickiness - Getting Repeat Visitors
Software Reviews
Spam - Unsolicited Commercial Email
Statistics and Tracking
Testimonials
Time Management
Traffic Generation - Getting Hits
Travel
Viral Marketing
Web Hosting
Web Site Design
Working At Home - Starting Out
Blank Page
 
Google
 

> Get Articles > Web Site Design > Designing with Style

Designing with Style


PDF icon Download as PDF

Richard Igoe
igoemail.com

TheWebsEye
http://www.TheWebsEye.com


DESIGNING WITH STYLE



By Richard Igoe



One important aspect of good design is to give your site a

theme and coherence. A great deal of this can be done using

a stylesheet.



Using stylesheets is not difficult. In fact it makes the

task of designing a website that much easier. However many

new designers don't use them.



But before dispelling some of the confusion, let us look at

the advantages of using CSS - cascading style sheets.



ADVANTAGES



1) You can use an external stylesheet to control the look

and appearance of your whole website, such as the font

size, style, and color, the background image, the

background color, etc... by changing a single file. You

don't need to edit every page.



2) Linking to a stylesheet reduces the size of your web

pages and gives you much cleaner HTML code because you

don't need to specify the font, color, or "style" of every

element on your page.



3) Web pages are displayed differently on different

browsers and platforms. For example a 10pt font looks fine

on a PC but becomes too small on a Mac. You can use a

browser-detection script in the header of your pages which

will link to a different stylesheet depending on which

browser is being used.



The rest of this article assumes you have a basic

understanding of HTML tags, the code behind your web pages.

If not you can get our simple HTML tutorial at -

http://www.thewebseye.com/HTML.htm .



Now using stylesheets is actually easier than HTML. The

main cause of confusion is that you can either link your

web pages to an external stylesheet, or you can include the

style sheet in the header of individual web pages inside

STYLE tags. Web design software does not always make this

clear unless you read the HELP pages in detail. Forget your

web design software for a moment, because it is easier to

understand stylesheets if you take a look under the

surface.



An external style sheet can be as simple and powerful as

this:



BODY { background-image: url(images/mybackground.gif);

background-color: #FFFFFF; }



P { FONT-FAMILY: Verdana, Helvetica, sans-serif; FONT-SIZE:

12pt; COLOR: navy }



You copy and paste the above in Notepad, Wordpad or other

text or HTML editor, and save it as "mystyle.css". Put this

stylesheet in the same directory as your HTML files. Note

the ".css" extension is important. Then you link your web

pages to this stylesheet by putting the following code in

the HEAD area of your pages.



link rel="STYLESHEET" type="text/css" href="mystyle.css"



It is now easy to change the background image or color of

your site by simply changing the variables in the

stylesheet. You can also change how the text in your in

your website looks Anything in "P" tags on your web pages

takes on the "P" attributes specified in the stylesheet.

The above will make your pages display Verdana text (and

you give the option of Helvetica and sans-serif in case

your visitor's computer does not support the first choice)

which is 12 pt and navy.



The next source of confusion is the use of the CLASS

attribute. But this is also real easy and very powerful. It

is best explained by adding another style to our stylesheet

explained above.



P.redtext { FONT-FAMILY: Verdana, Helvetica, sans-serif;

FONT-SIZE: 12pt; COLOR: red }



Now what this allows you to do is make certain blocks of

text red. In your web pages, instead of a simple "P"

tag around your text, you would add

class="redtext" to the "P" tag and the text inside the tags would be

red.



You can have any number of classes and assign classes not

only to P tags, but also to your table data TD, your

links "A" and any tag contained in the "BODY" of your web

pages. And by simply changing the stylesheet you can change

the look of your whole site. Are you beginning to see the

power of using style?



It is however important to realize Netscape and Internet

Explorer deal with stylesheets differently and Netscape

does not support them as fully as IE. Netscape basically

takes the inheritance a step too far. The only way to find

out what goes and what doesn't is by trial and error,

however there are a couple of resources which will help you

a long way with understanding more about stylesheets. We

have listed links to these resources at

http://www.thewebseye.com/stylesheets.htm .



With simple stylesheets you should have no problem and they

will really help to make sure your site keeps a certain

amount of uniformity and cohesion.



----------------------------------------------



Article Copyright by Richard Igoe -

http://www.TheWebsEYE.com . Get his latest Free Website

Success Course by sending a blank email to

mailto:wscquicktell.net and find out whether you have the

6 essentials of a successful site!



You may distribute this article freely as long as the above

information remains intact.





How useful did you find this article?

Not at all
A little
Averagely
Fairly
Very
 


This article can be downloaded freely from http://www.get-articles.com and used on your website or in your ezine so long as the author is credited and their resource box left intact. You should not change any links in the article, and where the article is used on a website it's links should be clickable. Please see our terms and conditions page for more information: http://www.get-articles.com/authors-publishers-terms.php
 

Get Articles


Top Articles

  • Stop Saving Money!
    By Leo J Quinn Jr
    Rating 138 / 195
  • The Top Ten Reasons For Being Honest
    By Monique Rider
    Rating 152 / 180
  • Top 10 Qualities of a Great Team Leader
    By Naseem Mariam
    Rating 143 / 180
  • 7 M's of Every Highly Effective Manager
    By Alonzie Scott
    Rating 124 / 175
  • Seven "Secrets/Tips" to Becoming a Millionaire
    By Craig Lock
    Rating 97 / 140
  • Five wonderful steps for good presentation skills:
    By Thomson Chemmanoor
    Rating 44 / 75
  • Do Pop-up Ads Work for Your Site?
    By Brian Su
    Rating 41 / 70
  • How to get your audience involved in your PowerPoint presentation:
    By Thomson Chemmanoor
    Rating 27 / 70
  • TOP TEN TIPS FOR PRESCRIPTION SWIMMING GOGGLES
    By Danielle Ross
    Rating 53 / 65
  • Ten Steps to a Power-Packed, Persuasive Proposal
    By Linda Elizabeth Alexander
    Rating 46 / 65
  • Insider Rollout Secrets Review
    By Alex Poole
    Rating 52 / 55
  • The 7 Signs of a Scam
    By Sharon Davis
    Rating 42 / 50
  • How to write a communication plan
    By Matt Eliason
    Rating 38 / 50
  • The MSN Ranking Code Loophole
    By Chris Rempel and Dave Kelly
    Rating 38 / 50
  • 12-Step Foolproof Sales Letter Template
    By David Frey
    Rating 41 / 45
  • Tips For Non-Sexist Writing
    By Tanja Rosteck
    Rating 35 / 45
  • Preventing Fraud On Your Website
    By Aaron Turpen
    Rating 32 / 40
  • Useless Resume Objectives
    By Rita Fisher, CPRW
    Rating 10 / 40
  • Hacker Prevention Techniques
    By Aaron Turpen
    Rating 30 / 35
  • 6 Steps to Great Customer Service
    By Aaron Turpen
    Rating 25 / 35

    May 28, 2012 © www.Get-Articles.com. All Rights Reserved.