โ† 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 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.

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

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

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

  5. What does the universal selector '*' target in CSS?

    Answer: All elements on the page

    The universal selector (*) matches every element in the document.

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

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