Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Images on mobile

Discussion in 'Misc WordPress Requests' started by williampatton, Dec 15, 2017.

  1. williampatton


    Reply To: Images on mobile, by williampatton

    Hey @dfart,

    There are methods of resizing the images using CSS. A common way to do it is using some CSS like so:

    @media only screen and (max-width: 720px) {
    .your-image-classname {
    height: auto;

    This code says that if the browser size is under 720px wide then to set the maximum width of images to be 100% of their container and let the height float to the correct size. You would need to change .your-image-classname to match the classname or targeting of the images on your site.

    That might be enough to make things work for you however usually some specific tailoring needs to happen for the images in different places so they look right how you want them on various different sizes.

    Reply To: Images on mobile

Share This Page

Monarch Social Sharing Plugin