CSS

Styling, layouts, flexbox, grid, and responsive design with CSS.

01

Quizzes

10

Questions

00

eBooks

00

Articles

00

Likes

10

Views

00

Shares

CSS

QUESTION NO 01
Share
box-sizing: border-box makes width include?

Answer: Padding and border
With border-box, specified width includes padding and border.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 02
Share
CSS stands for?

Answer: Cascading Style Sheets
CSS styles the presentation of HTML documents.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 03
Share
Which property changes text color?

Answer: color
The color property sets the foreground text color.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 04
Share
To center a block horizontally with margin you often use?

Answer: margin: 0 auto
A block with a width and margin-left/right auto is centered horizontally.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 05
Share
Which selector targets an element with id="hero"?

Answer: #hero
IDs are selected with a leading #.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 06
Share
Which selector targets class "card"?

Answer: .card
Classes use a leading dot: .card.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 07
Share
Flexbox main axis is controlled by?

Answer: flex-direction
flex-direction sets whether the main axis is row or column.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 08
Share
position: absolute positions relative to?

Answer: Nearest positioned ancestor
Absolute elements offset from the nearest ancestor with position not static.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 09
Share
Which unit is relative to the root font size?

Answer: rem
rem is relative to the root (html) font-size.
302 Quizzes
2930 Questions
00 Likes
QUESTION NO 10
Share
media queries are used for?

Answer: Responsive design breakpoints
@media rules apply styles based on viewport/device features.
302 Quizzes
2930 Questions
00 Likes