Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Responsive image for mobile screens



2 answers to this question

Recommended Posts

  • 0

I'n not sure if this is the best way to do it, but it solves your problem😊

Change "40" below to your liking.

@media screen and (max-width: 800px) and (orientation: portrait) {
  [data-section-id="60654e74029be7381101a5ae"] {
   	max-height: 40vh;
	min-height: 40vh; 

- Rasmus Myhrberg, Maker of Spark

Spark plugin – Get superpowers in Squarespace with 100+ presets

Link to comment
  • 0
On 4/23/2021 at 2:48 PM, beeskay said:

Site URL: https://www.binoodhasasi.com/work/chinatownxr


I was working on my website and the mobile screens do not resize the first background image to mobile screen. Is there a custom css code  I can use to solve this? Attaching an image to show the issue. 

You can also use this CSS (Add to Design > Custom CSS)

/* Chinatown XR - resize mobile image */
@media screen and (max-width:767px) {
[data-section-id="60654e74029be7381101a5ae"] {
    min-height: unset !important;
    height: 40vh;
    margin-top: 10vh;

Use this tool to find data section id, if you have similar problem in the future.

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...