wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Mastering CSS: Flip Box and Layout Concepts

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What CSS property is commonly used to create a flip box effect?

a)

translate

b)

transform

c)

scale

d)

rotate

2.

What does the 'position: absolute' property do in relation to its parent element?

a)

It stretches the element to fill its parent container.

b)

It positions the element at a fixed location on the screen.

c)

It positions the element relative to its nearest positioned ancestor.

d)

It makes the element invisible to the layout.

3.

How does 'transform: rotateY(180deg)' affect an element?

a)

It changes the element's color.

b)

It flips the element horizontally.

c)

It rotates the element vertically.

d)

It scales the element up.

4.

What is the purpose of 'transform-style: preserve-3d'?

a)

To enable 2D transformations only.

b)

To maintain 3D positioning of child elements relative to a transformed parent.

c)

To apply a shadow effect to the parent element.

d)

To hide child elements from the parent.

5.

What is the effect of 'backface-visibility: hidden' on a flipped element?

a)

The back face will be visible and displayed.

b)

The back face of the flipped element will be hidden and not visible.

c)

The front face of the flipped element will be hidden.

d)

The element will not be flipped at all.

6.

What is the difference between a comma-separated selector and a descendant selector?

a)

Descendant selectors can only select one element at a time.

b)

Comma-separated selectors are used for styling only.

c)

Comma-separated selectors select multiple elements, whereas descendant selectors select nested elements.

d)

Comma-separated selectors only apply to classes.

7.

What does the 'display: flex' property do in a CSS layout?

a)

It sets the background color of the container to transparent.

b)

It creates a flexible layout for child elements, allowing for easy alignment and distribution.

c)

It makes all child elements stack vertically without any spacing.

d)

It disables all CSS properties for child elements.

8.

How does 'position: relative' affect nested elements?

a)

All nested elements will inherit the 'position' property from their parent.

b)

Nested elements with 'position: absolute' will be positioned relative to the nearest ancestor with 'position: relative'.

c)

Nested elements with 'position: fixed' will be positioned relative to the viewport.

d)

'Position: relative' has no effect on nested elements.

9.

What is the main difference between 'grid-template-columns' and 'grid-template-rows'?

a)

'grid-template-columns' defines grid areas; 'grid-template-rows' defines grid items.

b)

'grid-template-columns' sets row sizes; 'grid-template-rows' sets column sizes.

c)

'grid-template-columns' sets column sizes; 'grid-template-rows' sets row sizes.

d)

'grid-template-columns' is used for spacing; 'grid-template-rows' is used for alignment.

10.

How can you create a responsive flip box using CSS Grid?

a)

Use only Flexbox for layout and ignore responsiveness.

b)

Create a static layout without any transitions.

c)

Use CSS Grid to create a grid layout, apply CSS transitions for flipping, and ensure responsiveness with relative units.

d)

Apply JavaScript for flipping effects instead of CSS.