Namespaces
Variants
Actions
Revision as of 02:16, 30 July 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CSS

Jump to: navigation, search
Article Metadata

Article
Created: sellis (25 Apr 2007)
Last edited: hamishwillee (30 Jul 2012)

CSS is an abbreviation of "Cascading Style Sheet."


They are used to separate style from content when deploying web pages.


Cascading style sheets are used to format the layout of Web pages. They can be used to define text styles, table sizes, and other aspects of Web pages that previously could only be defined in a page's HTML.


CSS helps Web developers create a uniform look across several pages of a Web site. Instead of defining the style of each table and each block of text within a page's HTML, commonly used styles need to be defined only once in a CSS document. Once the style is defined in cascading style sheet, it can be used by any page that references the CSS file. Plus, CSS makes it easy to change styles across several pages at once. For example, a Web developer may want to increase the default text size from 10pt to 12pt for fifty pages of a Web site. If the pages all reference the same style sheet, the text size only needs to be changed on the style sheet and all the pages will show the larger text.


While CSS is useful for creating text styles, and formatting other aspects of page layout as well. For example, CSS can be used to define the cell padding of table cells, the style, thickness, and color of a table's border, and the padding around images or other objects.

CSS gives Web developers more exact control over how Web pages will look than HTML does. It also has the great advantage of allowing changes to a whole site to be implemented through a single control point. This is why most Web pages today incorporate cascading style sheets.

WC3 have recommended that web developers use CSS and <div> tags to layout page elements. Hover the difficulties introduced by different Browsers in rendering the same CSS - have made this goal rather complicated in practice.



159 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved