Web Design - Week 2

0.0(0)
Studied by 1 person
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

Last updated 9:49 AM on 8/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

What does line-height control?

line-height controls the vertical distance between lines.

<p>line-height controls the vertical distance between lines.</p>
2
New cards

What does letter-spacing control?

letter-spacing controls the horizontal space between individual letters.

<p>letter-spacing controls the horizontal space between individual letters.</p>
3
New cards

What is the difference between margin and padding?

Margin is the space outside an element’s border, while padding is the space between the content and its border.

<p>Margin is the space outside an element’s border, while padding is the space between the content and its border.</p>
4
New cards

How do you align text inside a container?

Use the text-align property with values such as left, center, or right.

<p>Use the text-align property with values such as left, center, or right.</p>
5
New cards

What does display: flex do?

It activates Flexbox, allowing for easier alignment of content within a container.

<p>It activates Flexbox, allowing for easier alignment of content within a container.</p>
6
New cards

How can you size an image while preserving its proportions?

You can use width: 150px; and height: auto; to maintain the image's aspect ratio.

<p>You can use width: 150px; and height: auto; to maintain the image's aspect ratio.</p>
7
New cards

What does background-size: cover do?

It ensures that the background image covers the entire container, potentially cropping part of the image while maintaining its proportions.

<p>It ensures that the background image covers the entire container, potentially cropping part of the image while maintaining its proportions.</p>
8
New cards

What is the purpose of position: static?

It is the default positioning method where the element stays in the normal flow of the document.

<p>It is the default positioning method where the element stays in the normal flow of the document.</p>
9
New cards

How does position: absolute work?

It removes the element from the normal flow and positions it relative to the nearest positioned ancestor.

<p>It removes the element from the normal flow and positions it relative to the nearest positioned ancestor.</p>
10
New cards

What is a fixed element?

A fixed element stays in the same position on the screen even when the page scrolls, often used for navigation bars or buttons.

<p>A fixed element stays in the same position on the screen even when the page scrolls, often used for navigation bars or buttons.</p>