More than 50% of internet usage occurs through mobile devices, making it crucial for websites to optimize for this format.
To make your Squarespace website mobile-friendly, the background image must be changed from black to a different hue – this video demonstrates how this can be accomplished using CSS.
Change the Image’s Height
Mobile device screens often display Squarespace background images too small due to Squarespace’s image handling system, which utilizes an aspect ratio defined by both width and height (portrait images tend to be taller).
Squarespace uses responsive design to automatically adapt images to match each visitor’s screen size, but this may not always be ideal: In many instances, image dimensions may become lost while mobile users experience background images that don’t look as clear and sharp as on desktop.
However, there are a few solutions you can employ to address this problem. First, add a Spacer Block on either side of an Image Block to provide more room for images, thus shrinking their size. Or you could use custom CSS to alter their sizes precisely; simply identify their unique ID using Squarespace Collection/Block Identifier’s Chrome extension for this.
Change the Image’s Width
When creating an image, make sure it measures at least 2000px-2500px wide to prevent Squarespace from having to stretch or pixelate it on mobile devices.
Keep in mind when saving images with text to use a PNG rather than JPG file so the text remains sharp when resized for smaller screens.
If you’re using a Classic Section or Index page with a background image, it is essential that you understand that Squarespace reformats images to 2500 pixels – this may cause issues if your background image exceeds this pixel limit.
To fix this, add a Spacer content block on either side of your image. When you have added it, drag and drop to adjust its position; creating an apparent gap between it and content which will make the image smaller on mobile devices – although this might not be suitable if your images need to be full width.
Change the Image’s Aspect Ratio
Image aspect ratio can make all the difference when used as background content on a site. By default, Squarespace automatically scales photos to fit their containers; you may need different ratios if your images need to appear a certain way.
When using an Image Block as the background of a page, it is ideal to use an image with proportions that are taller than it is wide so as not to crop when viewed on mobile.
At minimum, it is advisable that all images on your website be of similar shape and size in order to maximize display and load times. Furthermore, text-heavy images saved as JPG instead of PNG may blur if saved this way. To guarantee the highest quality possible for each of your images before uploading them onto your site consider using third-party compression software to reduce file sizes without compromising quality.
Change the Image’s Height
If you’re using a Squarespace Image Block, adding a spacer block underneath can allow you to customize its size by creating an extra gap between it and text – effectively shrinking down its display size on mobile.
Custom CSS offers another method for changing the height of your Squarespace background image, but this approach requires more technical expertise than user-friendliness. In particular, knowing how to set CSS breakpoints as well as which image dimensions to use will help ensure that images display correctly on both desktop and mobile platforms.
Squarespace allows you to easily add background images for most page sections on your website. Unfortunately, however, getting them to look their best on mobile devices can be challenging. In this tutorial we will show how to fix background stretch on Squarespace mobile version as well as give some tips for optimizing images so they load faster – this will ultimately make your website better for both visitors and search engines alike!
Change the Image’s Width
If your banner contains full-bleed images, their width can vary depending on each visitor’s screen size and cause blurriness or pixelation. Therefore, for optimal results it’s recommended that images that are at least 2500 pixels wide be used.
One solution to this problem is adding a spacer content block around an image. This will create extra whitespace and prevent it from taking up too much room; furthermore, you can resize this block as necessary to adjust its height.
Change the width of an image using CSS. Although it requires more effort, this approach will ensure that your image fits on all screens appropriately. To do this, create a media query – for instance one that only applies to screens under 640px wide; apply this media query code directly into an img> tag then apply your new size accordingly on mobile devices.