CSS: Box Model, Selectors & Media Queries
129 cards · 🇺🇸 English
The CSS box model, selector types, media queries, and animations.
Study all 129 cards for free
Flashcards, quizzes, pixel-art games and a daily review that remembers for you.
Try the first 10 cards
1 / 10CSS
Tap the card for the answer · swipe right if you knew it, left if not
Already have an account? Sign in
Cards
- 1CSSCascading Style Sheets
- 2CSS box modelThe layout model describing every element as a rectangular box with content, padding, border, and margin
- 3Four parts of the CSS box model (from inside out)Content, padding, border, margin
- 4Default value of box-sizingcontent-box
- 5Box-sizing: border-boxMakes width and height include padding and border, not just content
- 6Margin collapseWhen vertical margins of adjacent block elements combine into a single margin (the larger of the two)
- 7Shorthand order for margin/paddingTop, right, bottom, left (clockwise from top)
- 8Display: blockMakes an element take up the full width available and starts on a new line
- 9Display: inlineMakes an element stay on the same line and only take up as much width as needed
- 10Display: inline-blockCombines features of both: stays inline but allows width/height to be set
- 11Display: noneRemoves the element from the document flow entirely (no space reserved)
- 12Visibility: hiddenHides the element but still reserves its space in the layout
- 13Default position valuestatic
- 14Position: relativePositions the element relative to its normal position; still in document flow
- 15Position: absolutePositions the element relative to its nearest positioned ancestor; removed from document flow
- 16Position: fixedPositions the element relative to the viewport; stays in place when scrolling
- 17Position: stickySwitches between relative and fixed depending on scroll position
- 18Z-indexA property that controls the stacking order of overlapping positioned elements
- 19Default display value for divblock
- 20Default display value for spaninline
- 21Display: flexEnables Flexbox layout on an element, making it a flex container
- 22Flex-directionThe main axis direction: row (default), column, row-reverse, or column-reverse
- 23Justify-contentAligns items along the main axis (e.g., flex-start, center, space-between)
- 24Align-itemsAligns items along the cross axis (e.g., flex-start, center, stretch)
- 25Flex-wrapControls whether flex items wrap to multiple lines: nowrap (default), wrap, wrap-reverse
- 26Flex: 1Shorthand for flex-grow: 1, flex-shrink: 1, flex-basis: 0%
- 27Display: gridEnables CSS Grid layout on an element, making it a grid container
- 28Grid-template-columnsThe number and size of columns in a grid
- 29Grid-template-rowsThe number and size of rows in a grid
- 30Fr unit in CSS GridA fractional unit representing a fraction of the available space
And 99 more cards. Study the whole deck free
Articles about this deck
More Programming decks
See all- 🌐
APIs: REST, GraphQL & HTTP Status Codes
108 cards · 🇺🇸 English
REST and GraphQL API concepts plus common HTTP status codes.
- 🎨
CSS: Box-Modell, Selektoren & Media Queries
129 cards · 🇺🇸 English
Das CSS-Box-Modell, Selektortypen, Media Queries und Animationen.
- 📄
HTML : balises et attributs
99 cards · 🇺🇸 English
Éléments HTML essentiels et leurs attributs.
- 🔒
Web Security: OWASP & Authentication
35 cards · 🇺🇸 English
Common web vulnerabilities (OWASP Top 10) and authentication concepts.
- 🎨
CSS : Flexbox et Grid
58 cards · 🇺🇸 English
Mise en page avec CSS Flexbox et Grid.
- 🔷
TypeScript: Types, Interfaces & Generics
77 cards · 🇺🇸 English
Core TypeScript type system: types, interfaces, and generics.
