• Hi

    I am transferring an HTML site to WP. A lot of the images are 300px wide. Part of the reason for the move is to make the site responsive. The current site aligns the image right. They will eventually change the images but in the meantime I have moved the site. However, when viewing the site the text is squeaking up alongside the small image. Apart from changing every image and making them align centre, is it possible to dump a CSS rule that week make the image align centrally when views on a mobile please?

    Thanks

    Rich

Viewing 1 replies (of 1 total)
  • is it possible to dump a CSS rule that week make the image align centrally when views on a mobile please?

    Yes, it’s something like this

    @media only screen and (max-width: 600px) {
    	article img { display: block; margin: 0 auto; }
    }

    There is no way to know the right selector without inspecting the real site but suppose the theme is HTML5 the code above should work.

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile css’ is closed to new replies.