Title: Mobile css max width image to screen width
Last modified: August 22, 2016

---

# Mobile css max width image to screen width

 *  [nickpeters](https://wordpress.org/support/users/nickpeters/)
 * (@nickpeters)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/mobile-css-max-width-image-to-screen-width/)
 * Hello,
 * I just want to adjust one thing to this otherwise perfect theme;
 * The maximum width for images should never be more than width of the screen. When
   looking on my phone in portrait only the center of images is visible. I added
   to .builder-banner-slide:
    background-size: 100% auto;
 * This almost did the trick, but theres to much white space now. Could someone 
   provide a better way to fix this? Maybe using [@media](https://wordpress.org/support/users/media/)…
   orientation: portrait ??
 * Love to hear from you 😉
 * [@media](https://wordpress.org/support/users/media/) all and (orientation:landscape){
   [
   styles for landscape orientation] }
 * [@media](https://wordpress.org/support/users/media/) all and (orientation:portrait){
   [
   styles for portrait orientation] }
 * Thanks in advance! Nick.

The topic ‘Mobile css max width image to screen width’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/make/1.10.9/screenshot.jpg)
 * Make
 * [Support Threads](https://wordpress.org/support/theme/make/)
 * [Active Topics](https://wordpress.org/support/theme/make/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/make/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/make/reviews/)

## Tags

 * [slider image size](https://wordpress.org/support/topic-tag/slider-image-size/)

 * 0 replies
 * 1 participant
 * Last reply from: [nickpeters](https://wordpress.org/support/users/nickpeters/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/mobile-css-max-width-image-to-screen-width/)
 * Status: not resolved