CSS
-
To learn CSS, you must learn the fundamental instead of using a premade framework
- By learning the ‘Box Model’
- Every item should be seen as a box within another box
- By learning the ‘Box Model’
-
Best practices in learning CSS
- Use firefox since it has better dev tools
Layouts
-
Flexbox:
display: flex
- To align items to center
- use
justify-content: center;
for verticle align - use
align-items: center;
for horizontal align
- use
- To align items to center
-
Grid
-
Variables: can be established, used, and overrided in css
-
To keep a pop up window after mouse moves to child of the button use
To align vertically and horizontally you have to use flex
Responsive Design (Mobile) Methods
1. Media Queries
2. Clamp
- Set the min-value (for mobiles), prefered (looks good on both), or max (for desktop)
- Use this instead of media queries