CSS Validation DOCUMENTATION   |   CSS TUTORIAL   |   FORUM

CSS Documentation

Quick Access

Type the name of a CSS attribute, property, or technique to search for it.

Search for: Sorry, still building this.

Common Tags, Syntax, and Features

Add a style sheet to your markup

<link rel="stylesheet" type="text/css" href="style.css" />

Import another style sheet

@import url("style2.css");

Paddings, margins, and borders

attribute-name: top-value right-value bottom-value left-value; Replace "x-value" with your actual values (such as "10px").

Common (and forgotten) selectors

div p * [href] {
}
This matches any tag that has the "href" attribute and is inside a <p> tag which is itself inside a <div> tag.