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 defines how flex items wrap onto multiple lines?
Answer: flex-wrap
flex-wrap controls whether flex items wrap onto multiple lines.
What does the '!important' rule do in a CSS declaration?
Answer: Overrides other declarations regardless of specificity
!important gives a declaration the highest priority, overriding normal specificity rules.
Which pseudo-element is used to insert content before an element's content?
Answer: ::before
The ::before pseudo-element inserts generated content before an element's content.
In CSS, what does the 'vh' unit represent?
Answer: 1% of the viewport height
The vh unit equals 1% of the viewport's height.
Which property would you use to round the corners of an element?
Answer: border-radius
border-radius rounds the corners of an element's border box.
What is the result of setting 'margin: 0 auto' on a block element with a fixed width?
Answer: It horizontally centers the element
margin: 0 auto centers a fixed-width block element horizontally within its container.
Which property controls the stacking and direction of items in a flex container's main axis?
Answer: flex-direction
flex-direction sets whether the main axis runs in a row or column.