Make their height automatically proportionate to their width okay so without this let’s take a look at denver website design company how the layout just falls apart so we can see that these images are quite large which allows them to be responsive but without giving them a max width the layout just completely breaks so add that code back in and that’s.
what allows the images you can see here the image actually isn’t that wide but once it breaks down and sits on the full column it’s actually fairly wide so that’s what makes that possible is this little bit of code anyways that’s just a side note moving on with the lesson now for our next bit of business.
Let’s focus on the smartphone size so once we get down to the smartphone size we want everything to be single column we don’t want two columns here and down below we don’t want two columns here we want everything to be full width single column so I already showed you one way to include conditional CSS by the head section of your HTML file.
This code here’s a second way in the actual CSS file in our #instagram responsive CSS you can write media screen and max width we’ll say pixels okay now any code that I place in between these curly brackets will only run at pixels or smaller so we can say something like div mobile collapse be full width with auto do not float so.
We want to create any columns and don’t have any margin to the right so now if i refresh we can see that everything’s single column once the browser is pixels or smaller so we see we’re three okay now we’re at two columns with the threshold now once we hit the pixel threshold we’re down to a single column now this is all made possible with some classes.