How to Incorporate CSS Into Your Web Design

Starting out in your web design? Wishing to useperspective... a structure... something for you to work
CSS? You can.on later.
But first - before you begin anything - there is oneMaster Style Sheet
thing you must do: don't start with CSS. Confused?What is the Master Style Sheet? This should be the
We'll explain.first style sheet you call all your documents onto.
Although it may be tempting to jump straight intoThrough this style sheet you should be able to clear
your website by creating the design, unless youout the default browser settings that can cause later
know what is going to go on your website, this is aproblems in cross-browser design and begin afresh..
mistake. In fact it will be nearly impossible for you toOnce you have cleared out the styles with your
do, so put CSS to the side for the moment andmaster style sheet, your design can start from the
consider another route: Content.same place in all your browsers, giving you a clear
Yes content. Layout and everything else can comecanvas to play and paint on.
later. What's important is working through theNow... once your content and basic HTML have been
content of your webpage as it is here where yourset up, work your way down from the start of the
initial impressions for your web design will begin topage and place in your CSS styles. We know it may
appear.feel tempting to work more globally before focusing
So forget layout and how many divisions you plan toon the little details, but that can complicate the CSS
place onto your website; ignore graphic design, andprocess.
consider for a moment what the purpose of yourBy working down the HTML document gradually, the
website is? What is your ultimate goal by creatingmovement - acting as a cascade -will actually work
this site? Once you know and are confident on howto limit the complications of CSS at a later stage.
you want to tackle it, go to your computer andAnother important aspect to bear in mind is the CSS
write the content straight onto the page.itself and how you write it. The more complicated it
As you do this, view the page as though you areis, the harder it will be to maintain later and can result
writing a HTML for IE 1.0. This includes putting yourin styles not working to the level you expected.
navigation into a list, your headlines with H1, H2 andInstead:o Avoid complex selectors (defines the exact
H3 tags, and your content inside paragraphs.elements to apply the style to) - alternatively use
Sounds simple? It is. And if you plan to havesimple tags and ID selectors when possible to simplify
subsections on your website, this is easily resolvedthe designo Ask yourself this question - does the
by separating them with DIV tags. All that matters atpage need it? For example don't add a class for
this stage is that you place the basic content onto'bolder' or 'italic' unless this will play an integral part to
your webpage. The rest will come.the representation of your pageo HTML - unless it is
Yes we know what you are thinking - your pageabsolutely necessary avoid changing. The biggest
looks boring... plain... dull. Your doubting what you havemistake is adding extra div tags to your website. The
done.only exception to this rule is your 'container' element
Let me reassure you that this is just the first stageused for column layouts and graphic designs.
of the process. There is much more to do before itLastly create a library of styles to keep consistency
is finished, and we promise once you have created aof your page constant. This includes the basic
new CSS web page, you will actually have achieved itelements of centre, float left, underline and no
in half the usual time frame.underline.
You see the reason we do this way, is that someIt is even possible to create a standard style sheet
designers make the mistake of trying to build up thethat you can load directly onto all your pages, so that
layout of their web design without content. This iswhen you use the class of float right, you can be
possible, but without content, elements such as widthconfident that the element will appear aligned to the
and height may look misleading and are guaranteedright when the style is applied.
to alter once the content is introduced. Until it isAnd that is it. With these simple tools at your side
there, you can never be sure of the accuracy ofyou can easily create a new webpage or web design,
your layout.and expand upon your website at a later stage.
Even if it is rough, content will give your pageAll you need to do is plan and the rest...easy.