SebastianHannes SebastianHannes - 1 year ago 69
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:

Answer Source

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*/
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download