Media query for responsive columns

Hi @Ckleming

Congratulations on finalizing the certificate. This training is very good!

Look how use media query:

HTML

<div class="my-column">
 Content here
</div>
<div class="my-column">
 Content here
</div>
<div class="my-column">
 Content here
</div>
<div class="my-column">
 Content here
</div>

CSS

.my-column{ 
 width:25%;
}

@media (max-width:900px){
 .my-column{
 width:50%;
 }
}

in this example I ignored all the other CSS formatting, to show only the responsiveness of the media query.

Did this post help solve your problem? If so, please mark it as a solution.

Best regards!