Loading

Quipoin Menu

Learn • Practice • Grow

css / CSS Max-Width
mcq
Direction: Choose the correct option

Q1.

.container {
max-width: 600px;
width: 100%;
background: lightblue;
}
What will be the width of .container on a 500px screen?
A. 100%
B. 500px
C. 0px
D. 600px
Direction: Choose the correct option

Q2.

Which CSS property is used to set the maximum width of an element?
A. max-size
B. maximum-width
C. max-width
D. width
Direction: Choose the correct option

Q3.

.box {
max-width: 400px;
width: 800px;
}
What will be the actual width of .box?
A. 400px
B. 0px
C. 1200px
D. 800px
Direction: Choose the correct option

Q4.

What is the default value of max-width property?
A. auto
B. none
C. 100%
D. 0
Direction: Choose the correct option

Q5.

.responsive {
max-width: 100%;
height: auto;
}
This CSS is commonly used for which type of elements?
A. Images
B. Spans
C. Text
D. Divs