Devlog - 2025-10-07
π What I Did
- Playing cards.
π§ What I Learned
Flexbox and Flexmodel
- Main axis β direction of items (set by flex-direction).
- Cross axis β perpendicular to the main axis.
flex-direction
Defines the direction of flex items:
- row β horizontal (default)
- row-reverse β horizontal reversed
- column β vertical
- column-reverse β vertical reversed
flex-wrap
Controls whether items wrap when space runs out:
- nowrap β no wrapping (default)
- wrap β moves items to a new line when needed
- wrap-reverse β wraps in reverse order
flex-flow: column wrap-reverse;
justify-content
Aligns items along the main axis:
- flex-start β start
- flex-end β end
- center β center
- space-between β equal space between items
- space-around β space around each item
- space-evenly β equal space between and around
align-items
Aligns items along the cross axis:
- flex-start β start of cross axis
- center β centered vertically/horizontally
- stretch β items stretch to fill space
Typography
- The art of arranging text to make it readable and visually appealing.
Font Properties
- Weight: Thickness (light, bold).
- Style: Italic or normal.
- Width: Condensed or expanded.
Text Anatomy
- Baseline: Line letters sit on.
- Cap Height: Height of uppercase letters.
- X-height: Height of lowercase letters.
- Ascenders/Descenders: Parts extending above or below main body.
Spacing
- Kerning: Space between pairs of letters.
- Tracking: Space across all letters.
- Leading: Space between lines of text.
Best Practices
- Use simple, readable fonts (2β3 max).
- Create hierarchy with font sizes.
- Avoid too many fonts for visual consistency.
font-family: Arial, "Times New Roman", sans-serif;
Accessibility Tree
A structure used by screen readers to interpret and interact with the content on a webpage.
π₯ Whatβs Next
- Css - positioning, attribute selectors and responsive design.
| β Previous | Next β |