โ† All CSS Flashcard Decks

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
  1. Which CSS property defines how flex items wrap onto multiple lines?

    Answer: flex-wrap

    flex-wrap controls whether flex items wrap onto multiple lines.

  2. 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.

  3. 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.

  4. In CSS, what does the 'vh' unit represent?

    Answer: 1% of the viewport height

    The vh unit equals 1% of the viewport's height.

  5. 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.

  6. 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.

  7. 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.