NAV
javascript

CSS Basics

Introduction to CSS

Adding CSS to HTML page

Selectors

Basic Selectors

Combining Selectors

Grouping Selectors

Selectors by following Document Tree Structure

Cascade

Specificity

Specificity Calculation

Inheritance

Attribute Selectors

Pseudo Classes

Pseudo Elements

.myElement::before { content: "Hey Hey!"; } ```

Colors

Units

Pixels

Percentages

Relative Units

Viewport Units

Fraction Units

URL()

Calc()

Width of element defined using the calc() function

Backgrounds

Background example with linear gradient

Comments

More CSS

Box Model

Box Model Image

Border

Border-style

Borders Image

Border-width

Border-color

Border-radius

Border example with border-radius, border-width, border style, and border-color

Margin

Some Test for margin centering using "auto"

Padding

Some text to demonstrate padding

Box Sizing

Example testing out "border-box"

Display

Inline

Block

None

Positioning

Static

Relative

Relative Position Image

Absolute

Absolute Position Image

Fixed

Sticky

Floating

Clearing

Tables

Name Age
Flavio 36
Roger 7
Syd 10

Centering

Lists

list-style-type

list-style-image

list-style-position

Filters

Blur

Opacity

Grayscale

Sepia

Invert

Brightness

Contrast

Saturate

Typography

text-transform

text-decoration

Example with text-decoration "underline wavy red"

text-align

Example with text-align "center"

line-height

Error Handling

Custom Properties

Creating variables inside elements

body { --default-color: red; }

main { --default-color: red; }

p { --default-color: red; }

span { --default-color: red; }

a:hover { --default-color: red; } ``` * Depending on where it was defined, the scope of the variable changes

Variables scope

Fallback values for var()

HTML and CSS Exercises

Blog Markup with CSS Thoughts

Formatting Text

Tables

Example Form

TailWind CSS and Frameworks

Introduction

Tailwind First Time

Tailwind Margin / Padding Cheatsheet

Tailwind Width Cheatsheet

Tailwind Fonts Cheatsheet

Tailwind Colors Cheatsheet