Tuesday, March 2, 2010

Cascading Style Sheets CSS. What an Efficient Concept.

Cascading Style Sheets (CSS) uses two broad concepts to create web pages. It defines the layout and it defines the fonts.

Layout:
Using CSS margins, padding and borders in CSS you can build the framework for the site. Prior to widespread use of CSS the only way was the use of tables. Tables were not meant for layout but many designers used tables to layout the pages into many different ways. Nesting tables inside one another created hard to manage code. A table for layout was wide spread on the Web including site such as Google, Yahoo and MSN. It was the only way. Even after CSS was introduced, many browsers did not fully support CSS.

Fonts:
Prior to widespread support for CSS, a page would be covered in tags. It was difficult to find the actual content and an inefficient way to build and manage a page. With CSS content is separated from the layout. All the fonts, links and colors are defined in the CSS code and then applied to the entire site.

All CSS in external files:
Linking an external file now made changing a site easier. Each HTML file contains a link to the external CSS file. Changes made in the external file (linked from the individual files) then cascaded through the entire site.

CSS. An efficient concept!

www.maderweb.com

Share/Bookmark

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...