The FCPL Wiki

 

CSS Intro

Page history last edited by librarybob 3 yrs ago

Cascading Style Sheets

 

Why Use Them?

 

Cascading Style Sheets (CSS) define the way content is presented in Web pages. Styles may be used in HTML elements, the <HEAD> of an HTML document, or in an external style sheet.

 

Benefits of using CSS include:

 

  • Easy to maintain: a single external style sheet can control the appearance of innumerable Web pages.

 

  • Smaller file sizes: Presentation details can be kept in an external file allowing the HTML files to only contain content. This will often dramatically reduce the HTML file size.

 

  • Different media: CSS can be tailored for different media, including browsers (the screen), printers, handheld devices, etc.

 

  • Great control over presentation right down to the pixel level.

 

Note: When using absolute positioning, the clear: both; command will not work correctly. The surrounding columns have to be floated (not positioned absolutely) to have the clear command work correctly.

 

Selectors

Comments (0)

You don't have permission to comment on this page.