SebastianHannes SebastianHannes - 7 months ago 24
HTML Question

Text only under the image and not between if another resolution

I have a div box with an image and and text. I want that the text only float under the image if the resolution of the display is smaller than a bigger resolution.

Here is a draft what I mean:


You can use @media queries for that. If you want to target small screen then you can use this

@media screen and (max-width:768px){
   /* your css code goes here*/