SebastianHannes SebastianHannes - 3 months ago 11
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:
http://fs5.directupload.net/images/160821/gxfkmcre.png

Answer

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*/
}
Comments