CSS
Styling language of the web
Need to know (before learning CSS): HTML
Selectors
In order to set design rules with CSS to an HTML element (tag). We need to use a selector, to specify which element should the rules (declarations) apply to.
Pseudo selectors (special selectors)
There are some special rules selectors to be more specific about which tags should be changed. depending on the tag state or place in the page.
CSS rules (declarations)
CSS rules are style declarations of how the selected element should appear. There are many but we will focus here on the basic ones.
CSS rules positioning: display and position
Many time you will find yourself in need of change the behaviour of elements with others in the page. For those cases knowing the display and position are really useful.
CSS rules spacing: margin and padding
To control the spacing between elements on the page we use margin and padding rules. They are similar besided the fact that margin effects the outer part of the element and padding effects the inner part of the element.
CSS rules fonts: font-family, font-size and more...
Font rules enable you to change how text appears and much more. Some of the basic useful font rules are: font-family, font-size, color, line-height, font-weight and font-style
Media queries (mobile and different screen sizes)
Media queries are blocks of css with a condition to apply when it fits. Mostly used to activate rules per the screen width for mobile, tablet and desktop devices.