CSS Layout, Positioning, Overflow, and Sprites: Key Concepts for Web Design

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

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:42 PM on 2/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

37 Terms

1
New cards

What is Normal Flow in web design?

The order in which elements appear on a web page, rendered line by line.

2
New cards

What does the CSS float property do?

It allows elements to be positioned to the left or right, making text wrap around them.

3
New cards

What are the possible values for the float property?

left, right, and width.

4
New cards

What is the purpose of the clear property?

It stops elements from wrapping around floated elements.

5
New cards

What does overflow: visible mean?

Content that is too large will overflow outside the allocated area.

6
New cards

What does overflow: hidden do?

It clips large content to fit within the allocated space.

7
New cards

What does overflow: auto mean?

Content fills the area, and scroll bars appear if needed.

8
New cards

What does overflow: scroll do?

Scroll bars are always shown to display the content.

9
New cards

What is box-sizing in CSS?

It includes padding and border in an element's total width and height.

10
New cards

How is width calculated without box-sizing?

Width = content width + padding + border.

11
New cards

Why do developers use box-sizing?

To avoid needing to subtract padding and borders from width.

12
New cards

What happens when you set width without box-sizing?

The element may appear larger than intended.

13
New cards

What is a nested element?

An element contained within another element.

14
New cards

How do you clear a float using a class?

Use a class with clear: left, right, or both.

15
New cards

What is the effect of clear: left?

It makes the next element appear below any floated elements on the left.

16
New cards

What is the effect of clear: right?

It makes the next element appear below any floated elements on the right.

17
New cards

What is the effect of clear: both?

It clears floats on both sides, allowing the next element to start below.

18
New cards

What does 'box-sizing: border-box;' do?

Includes padding and border in the element's width and height.

19
New cards

What is 'content-box' in box-sizing?

Default setting; only content's width and height are included.

20
New cards

What is a basic two-column layout in CSS?

Created using the float property.

21
New cards

What does 'display: none;' do?

The element is not displayed at all.

22
New cards

What does 'display: block;' do?

Makes an element behave like a block element.

23
New cards

What does 'display: inline;' do?

Makes an element behave like an inline element.

24
New cards

How to create horizontal navigation with an unordered list?

Use display property to make list items inline.

25
New cards

What is a pseudo-class?

A way to style an element based on its state.

26
New cards

:link pseudo-class

Styles a hyperlink that has not been visited.

27
New cards

:visited pseudo-class

Styles a hyperlink that has been visited.

28
New cards

:hover pseudo-class

Styles a hyperlink when the mouse is over it.

29
New cards

:active pseudo-class

Styles a hyperlink when it is being clicked.

30
New cards

What does 'position: static;' mean?

Default position; elements follow normal document flow.

31
New cards

What does 'position: fixed;' do?

Keeps the element in the same place on the screen.

32
New cards

What does 'position: absolute;' do?

Positions the element relative to its nearest positioned ancestor.

33
New cards

What does 'position: relative;' do?

Positions the element relative to its normal position.

34
New cards

What is 'position: sticky;'?

Keeps the element in place until a certain scroll position.

35
New cards

What is a CSS sprite?

An image file that contains multiple small graphics.

36
New cards

What is the advantage of using CSS sprites?

Saves download time by reducing HTTP requests.

37
New cards

How to use a sprite image in CSS?

Use background-image, background-repeat, and background-position.