Cascading Style Sheets (CSS) Notes

Cascading Style Sheets (CSS) are used to define the layout of Web pages.

Now, your HTML code will be used only to define the structure of your contents while the CSS will allow you to create your styles and your layout.

CSS is a very effective new way to apply styles to HTML elements.

They allow you to set any style property such as border, character type, background color, space between letters, and so on. (We will come back later on how to do this).

There are three main ways to apply CSS styles:

  • In the code body (X) HTML;
  • In the header of the page;
  • In a style sheet completely separate from the HTML (X) code.

Table of contents

  • What is CSS?
  • Styles Solved a Big Problem
  • CSS Saves a Lot of Work
  • CSS Syntax
  • CSS Selectors
  • CSS Element Selector Example
  • CSS Comments
  • The id and class Selectors
  • The class Selector
  • Three Ways to Insert CSS
  • External Style Sheet
  • Internal Style Sheet
  • Inline Styles
  • Multiple Styles Will Cascade into One
  • CSS Background Properties
  • Background Color
  • Background Image
  • Background Image - Repeat Horizontally or Vertically
  • Background Image - Set position and no-repeat
  • Background - Shorthand property
  • CSS Border
  • Text Transformation
  • Text Indentation
  • Grouping Selectors
  • Nesting Selectors
  • Static Positioning
  • What is CSS Float?
  • How Elements Float
  • Navigation Bars
Size316.22 Kb
File typepdf
Downloads1692
Created2016-12-26
Cover of Cascading Style Sheets (CSS) Notes
Preview PDF

Download

  • The JavaScript Beginner's Handbook

    The JavaScript Beginner's Handbook follows the 80/20 rule: learn in 20% of the time the 80..., download free JavaScript tutorial in PDF (70 pages) created by ....

  • Reactive Data Handling

    We depend on web applications to be highly-available and to provide us with up-to-the-seco..., download free React tutorial in PDF (139 pages) created by ....

  • The React Beginner's Handbook

    Download free course The React Beginner's Handbook, pdf file on 40 pages by Flavio Copes....

  • jQuery Fundamentals

    With this unique, project-oriented book, author Rebecca Murphey teaches even the most novice of JavaScript users how to quickly get started utilizing the JavaScript jQuery Library to decrease the amount of code that needs to be written and tested. A four-color code syntax highlighting system provi...

  • Node.js tutorial pdf

    ...

  • Angular Succinctly

    Download free course Angular Succinctly, pdf file on 124 pages by by Joseph D. Booth....

  • Drupal 7 Views Cookbook

    Fully revised and updated for 2016, Drupal 7 Views Cookbook allows you to bypass most of t..., download free Drupal 7 tutorial in PDF (218 pages) created by Ayen Green ....

  • Learning PHP

    Download free course Learning PHP, pdf file on 603 pages by Stack Overflow Community....

  • Learning React Native

    Download free course Learning React Native, pdf file on 101 pages by Stack Overflow Community....

  • W3.CSS Succinctly

    Download free course W3.CSS Succinctly, pdf file on 85 pages by Joseph D. Booth....