reading-notes

Aloysious' Codefellows Reading Notes

View the Project on GitHub

Code 201 Reading Notes

Class 8

Class 1 Instructor’s Repo

<== Previous Lesson Next Lesson ==>

<== Home 🏠

CSS Layout

gridzzzz

960 GRID Generate custom Grids / Selectors

CSS CHEATSHEET

HTML Wireframe Codefellows

Lorem Ipsum Text Templates

<img src="https://placehold.it/200x300/ddd"/> produces the an image, with a width of 200 pixels, a height, of 300 pixels, and color of #DDD, which is a light gray.

CSS NOTES

Refresher

A CSS rule-set consists of a selector and a declaration block:

css syntax

The selector points to the HTML element you want to style.

The declaration block contains one or more declarations separated by semicolons.

Each declaration includes a CSS property name and a value, separated by a colon.

Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.

There are three ways of inserting a style sheet:

Cascading Order

All the styles in a page will “cascade” into a new “virtual” style sheet by the following rules, where number one has the highest priority:

  1. Inline style (inside an HTML element)
  2. External and internal style sheets (in the head section)
  3. Browser default

So, an inline style has the highest priority, and will override external and internal styles and browser defaults.

Layout Duckett HTML book (pp.359-404)

Positioning Schemes

Visual formatting model W3 Schools

SELECTORS W3 Schools

PROPERTIES W3 Schools

Reading

From the Duckett HTML book:

<== Previous Lesson Next Lesson ==>

<== Home 🏠