CSS has been around for a while now though not all browsers supported them in their entirety. CSS was developed as a means of separating content from layout with the added benefit of actually making pages faster to load.
CSS works by declaring a style by giving it a name and, for example, a font definition. Such as BodyText is Verdana font, 11 pixels and Black. Then whenever you need to use text formatted like this you can wrap a <DIV> or <SPAN> tag around it and give the attribute class="BodyText" i.e. <DIV class="BodyText">Some Text</DIV> This is much more efficient, code wise, than the traditional <FONT FAMILY="Verdana" COLOR="Black" SIZE="11px">Some Text</FONT>.
Although styles can be defined on each page, it is far more efficient to create a separate Style Sheet and link each page to it. By doing this, should you decide to change the BodyText style, you only need to change the BodyText definition once and the change 'cascades' across your whole site.
CSS is not restricted to formatting text, it can be used to format tables, backgrounds, some form elements and even position elements around the screen.
CSS are very useful when used in designing web sites from a consistency point of view. They are also very powerful in allowing you to reformat the layout of your web site for different viewing devices such as web TV and PDAs, as well as creating printer friendly or accessible versions of your site.
All fields are required. Email addresses are not displayed on our website. All comments are moderated before appearing on our website.
We have filled the SEO and developer jobs - welcome Tim2 and Hannah!
Thanks for posting a comment.
Your comment will appear once its been approved by an admin.