
The lower down the script, code gets higher position
element
class
attribute
id
external
internal
inline
color: green !important;
`` (space): Any descendant (lefthand-side is the descendant)
, : Grouping multiple selectors
> : Direct descendant (single level down)
(다붙혀쓰기) : Chaining (to be really specific)
⚠️ Always specify from general to specific (element → class → id)
💡 You can also COMBINE COMBINERS
Default location (not overlapping with other elements)
Relative to static (default location)
Position relative to nearest positioned (meaning position property set) ancestor or top left corner of webpage
💡 Takes element out of the original HTML flow and puts it on another layer (On top of everything, meaning higher z-index)
🔤 z-index : towards(+)/away(-) from screen