File Extension FYI Center

File Extension CSS - Style Sheet

File extension CSS is used for cascading style sheets that describe the presentation of Web pages. A CSS sample file is provided.

File Extension: .CSS

MIME Type: text/css

File Content: Presentation style sheet

What is CSS? CSS is a short name for Cascading Style Sheets, published in 1996 by the HTML Editorial Review Board (ERB).

A CSS file provides a collection of rules that defines how each elements in the Web page should be presented by specifying various presentation style properties, like:

  • Element Size - Width and height of the element.
  • White Space - Margin space and padding space.
  • Background - Background color and picture.
  • Font - Font family, size, style, color, etc..

CSS is the file extension for CSS files.

CSS files are text files. You can use any text editor to create CSS files. Here is a sample CSS file:

/* Sample CSS File */
body {padding: 8px 8px 8px 8px; background-color: #a0a0a0;}
p {margin: 8px 8px 8px 8px; line-height: 150%;
   font-family: 'verdana'; font-size: 12px;}
p.title {background-color: #cfcfcf; padding: 8px 8px 8px 8px;
   font-weight: bold; font-size: 20px; text-align: center;}

CSS sample file: Click sample.css to download.

Style sheets stored in CSS files are supported by all free popular Web browsers:

Sections in This Chapter

File Extension HTML - Web Pages

File Extension CSS - Style Sheet

File Extension JS - JavaScript

File Extension JSP - JavaServer Pages

File Extension ASP - Active Server Pages

Updated in 2008
File Extension CSS - Style Sheet