Web Design Information

CSS2.1

Box Model

Dimension Properties

Web Image Formats

JPEG/JPG

PNG-24

PNG-8

GIF

SVG

Lists

List Styles

Backgrounds

Background Properties

Fonts and Text

Text Properties

<

Font Properties

Selectors

Element Selectors

  • body {};
  • p {};
  • h1 {};

ID Selectors

  • #idname {};
  • #header {};

Class Selectors

  • .class {};
  • .redText {};

Universal Selector

  • *{};

Multiple Selectors

  • h1, h2, h3 {};
  • p, li, ul {};

Combined Selectors

  • #content.section{}
  • div#content.common{}

Traversing Selectors

  • Descendent:#header h1 {};
  • Child:ul > li {};
  • Adjacent:p + p + h1 {};

Selecting by Attribute

  • Exact Match:a[title="dog"]{}
  • Match Word that is Space Separated:a[title~="dog"]{}
  • Match word Hyphen-Seperated:a[title|="dog"]{}
  • Does not work with IE6

CSS Basics

Forms of CSS

  • Inline:style=color:red;
  • Embedded:style tags in head
  • Imported:@import url("style.css") in style tags in head
  • External:link tag in header

Link Attributes

  • rel="stylesheet"
  • type="text/css"
  • href="style.css"
  • title="Font Styling"
  • media="screen" or handheld, print, all

CSS Rule

Anatomy of a Rule