Unorganized Notes
This page stores notes that are not yet organized into a proper page or lesson.
- CSS PSEUDO-CLASS, can use button:hover to style the button when hovered over.
- CSS using em vs rem, em can be useful in some situations but for most cases we use rem. But, for example, we can make a button's padding use em so that way it scales with the button's font size.
- In css we can create variables, put them in the :root selector, and then use them throughout the css file.
- We can use the data-* attribute to store data in the html element.
- We can target a selector in css based on an attribute value, such as :root[data-theme="dark"]
- LOCAL STORAGE???
- html select element. html option element, used inside of select element.
- CSS has frameworks, such as the w3.css framework. Most popular css frameworks support responsive web design
- Alignment terminology: justify = inline axis aka HORIZONTAL, align = block axis aka VERTICAL