.CSS - File Extension for Style Sheet Files

Q

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

✍: FYIcenter.com

A

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:

2012-07-01, 4363👍, 0💬