Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

.gallery {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
}
What layout does this create?
A. Masonry layout
B. 3-column responsive image grid
C. Flexbox layout
D. 2-column grid
Direction: Choose the correct option

Q2.

.gallery img {
width: 100%;
height: 200px;
object-fit: cover;
}
What does object-fit: cover do?
A. Adds border
B. Stretches images
C. Crops images to fit dimensions without distortion
D. Shrinks images
Direction: Choose the correct option

Q3.

.gallery img:hover {
transform: scale(1.05);
transition: transform 0.3s;
}
What effect does this create?
A. Color change
B. Slight zoom on hover
C. Fade out
D. Rotation
Direction: Choose the correct option

Q4.

@media (max-width: 768px) {
.gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
.gallery { grid-template-columns: 1fr; }
}
What does this achieve?
A. Responsive gallery layout
B. Color change
C. Animation
D. Fixed layout
Direction: Choose the correct option

Q5.

.gallery-item {
position: relative;
}
.caption {
position: absolute;
bottom: 0;
background: rgba(0,0,0,0.7);
}
What is this CSS for?
A. Adding shadows
B. Creating borders
C. Adding captions over gallery images
D. Centering images