Complete the code to set the container width to be responsive in Webflow.
<div class="container" style="width: [1];"></div>
Using 100vw sets the container width to 100% of the viewport width, making it responsive.
Complete the code to make an image scale responsively in Webflow.
<img src="image.jpg" style="max-width: [1]; height: auto;">
Setting max-width: 100% makes the image scale down with its container, keeping it responsive.
Fix the error in the media query to apply styles only on screens smaller than 768px.
@media (max-width: [1]) { .menu { display: none; } }em or % units causes the media query to not work as expected.Media queries use px units for screen widths. 768px targets screens smaller than 768 pixels wide.
Fill both blanks to create a flex container that stacks items vertically on small screens.
.container { display: [1]; flex-direction: [2]; }block instead of flex disables flexbox features.row stacks items horizontally, not vertically.Setting display: flex enables flexbox layout. flex-direction: column stacks items vertically.
Fill all three blanks to create a responsive grid with 3 columns on large screens and 1 column on small screens.
@media (min-width: 768px) { .grid { display: [1]; grid-template-columns: [2]; gap: [3]; } }
flex instead of grid changes layout behavior.Using display: grid enables grid layout. grid-template-columns: repeat(3, 1fr) creates 3 equal columns. gap: 1rem adds space between grid items.