CSS Technology Applications Flashcards
7 cards from real CSS practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 CSS Technology Applications flashcards as text
Which CSS property is used to create space between the element's border and its content?
Answer: padding
Padding controls the space inside the border, between the border and the content.
What does the CSS 'z-index' property control?
Answer: The stacking order of positioned elements
z-index determines the vertical stacking order of positioned elements along the z-axis.
Which value of 'position' removes an element from the normal document flow and positions it relative to its nearest positioned ancestor?
Answer: absolute
position: absolute removes the element from flow and positions it relative to the nearest positioned ancestor.
In a CSS Flexbox container, which property aligns items along the main axis?
Answer: justify-content
justify-content distributes and aligns flex items along the main axis.
What does the universal selector '*' target in CSS?
Answer: All elements on the page
The universal selector (*) matches every element in the document.
Which unit is relative to the font size of the root element?
Answer: rem
The rem unit is relative to the root element's (html) font size.
What is the default value of the 'display' property for a element?
Answer: block
A is a block-level element by default, so its display value is block.