Background size is a new css3 property that is not necessarily well supported on mobiles. The background size css property lets you resize the background image of an element overriding the default behavior of tiling the image at its full size by specifying the width and or height of the image.
The keyword syntax auto cover and contain the one value syntax sets the width of the image height becomes auto the two value syntax first value.
Background image mobile size. There are four different syntaxes you can use with this property. Be careful about including non background images of people logos and other content. This is a great starting point but of course it s never quite that simple.
Auto 100 if you only want the image to be scaled in mobile and are happy with the desktop display then you would use a media query to achieve that. Media only screen and max width. On the right the image was resized to 250 pixels and set to display at 100 width on any device so it looks great both on a desktop and on the mobile version here.
Height and the multiple background syntax separated with comma. Media only screen and max width. An example of a too big image on a mobile device.
Strikingly s background images are meant to fill a wide variety of screen sizes from monitor to tablet to phone. Tiling a large image. It s tricky because your facebook cover displays differently on mobile and desktop devices.
According to facebook your cover photo displays at 820 pixels wide by 312 pixels tall on computers and 640 pixels wide by 360 pixels tall on smartphones. 767px body the file size of this background image is 93 smaller to improve page load speed on mobile internet connections background image. Width of the image second value.
We recommend a size of 1600 pixels wide by 900 pixels tall so your background can look great on all devices. A better option might be to use media queries and serve up a different background image to smaller devices. The background size property specifies the size of the background images.
By doing so you can scale the image upward or downward as desired. Contain requires at least ie 9 firefox 4 chrome 15 opera 11 5 safari 7 safari for ios 7 1 and android 4 4. Background image and background repeat are supported by all major browsers even the obsolete ie 6.