rolfkempf / css-crashcourse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS-Basics

This is a very basic crashcourse in CSS for developers.

Selectors

  • elements, classes, ids
  • pseudo-elements (::before, ::after)
  • attributes

Specificity

  • element/pseudo-elements < class/attribute/pseudo-classes < id < inline-style
  • file < style-element < style-attribute
  • !important
  • tricks (selector-paths, last rule wins)
  • html body div h1 < .my-headline
  • div div div div div div div div div < .my-class
  • div div div div div div div div div div = .my-class
  • div div div div div div div div div div div > .my-class
  • #x#x#x
  • Specificity calculator: https://specificity.keegan.st/
  • https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

Using CSS

Concepts & Methodologies

Using Frameworks

  • Bootstrap
  • Tailwind

Links

About


Languages

Language:HTML 53.5%Language:CSS 46.5%