CSS - Stylesheet for website design

What is CSS? CSS (Cascading Style Sheets) is way of defining appearance and layout of multiple web pages (or entire website if you like) in one central place. Style sheet defines how html elements are displayed and is generally saved as external .css file. The approach helps in changing feel and look of whole website by simply making a change in single CSS file.

Style sheet is created by including number of rules, which are formed as follows
selector {property: value} for single property
selector {property1: value1; property2: value2} for multiple properties

For example H1 element can be styled as
H1 {font-size: large; color: black}

Style sheets can be created as external .css files or internal style sheets between head tags. For specific style requirements, styles can be modified in the html markup. Here is the priority of style from low to high

Browser default (Lowest) -> External Style Sheet (.css file) -> Internal Style Sheet (Inside head tags) -> Inline style (Inside html element) (Highest)

You can define Font, padding, background, color, border and other properties of html elements using CSS.

Full CSS reference

Related Posts

Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted May 13, 2008 at 8:38 pm | Permalink

    Hi Abhi,
    Thanks for Commenting on my website. You have a very Good Blog here.

Post a Comment

Your email will not be published. Required fields are marked *

*
*