Title: Mobile css
Last modified: August 31, 2016

---

# Mobile css

 *  [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/mobile-css-5/)
 * 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)

 *  [paulwpxp](https://wordpress.org/support/users/paulwp/)
 * (@paulwp)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/mobile-css-5/#post-7196658)
 * >  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.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [mobile](https://wordpress.org/support/topic-tag/mobile/)

 * 1 reply
 * 2 participants
 * Last reply from: [paulwpxp](https://wordpress.org/support/users/paulwp/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/mobile-css-5/#post-7196658)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
