Jump to content

Full Width Images on a block

Recommended Posts

Posted (edited)

Site URL: http://brondyhumphrey.com

Hello everyone,

I hope you are doing well?
I am currently trying to make this on the footer of my home page: 


159547740_Capture2.thumb.JPG.49a7c32088f315ca7b95281ac140463d.JPG

(this is a montage I made on Canva)

But for now it looks like this:

Capture.thumb.JPG.05dc2ff84fbe1b1dda62b1347ef67452.JPG

Do you think it is possible to make ? 

I wish you a beautiful day 🙂 

brondyhumphrey.com
password: soleil

 

Edited by iJizzy1
Posted
1 hour ago, iJizzy1 said:

Site URL: http://brondyhumphrey.com

Hello everyone,

I hope you are doing well?
I am currently trying to make this on the footer of my home page: 


159547740_Capture2.thumb.JPG.49a7c32088f315ca7b95281ac140463d.JPG

(this is a montage I made on Canva)

But for now it looks like this:

Capture.thumb.JPG.05dc2ff84fbe1b1dda62b1347ef67452.JPG

Do you think it is possible to make ? 

I wish you a beautiful day 🙂 

brondyhumphrey.com
password: soleil

 

You can assign the image as background image of the section, we can support to modify it as sided image like design

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
20 hours ago, iJizzy1 said:

Hello @bangank36, I just assigned the image as background !
(Will it look nice on mobile as well ?)

Use this CSS

/* Footer split layout */
@media screen and (min-width:768px) {
[data-section-id="6139da96d203ef247abc5142"] .section-background {
    width: 50%;
    margin-right: 50%;
}
[data-section-id="6139da96d203ef247abc5142"] {
    background-color: white;
}
}

In the next time, I recommed using this Split plugin to achieve above layout, you can customize everything easier.

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
On 12/1/2021 at 1:21 AM, iJizzy1 said:

Hello @tuanphan ,

It is not working on mobile. The sentence is on the image. Do you know what is the problem ?

 

Yes. The code run on desktop only. Because the text will be small on mobile. To make code run on all devices, use this code

[data-section-id="6139da96d203ef247abc5142"] .section-background {
    width: 50%;
    margin-right: 50%;
}
[data-section-id="6139da96d203ef247abc5142"] {
    background-color: white;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted

Does it make sense

image.png.1eb27066c91d041a1cf0ed983b829eba.png

Try

@media only screen and (max-width: 767px) {
  section[data-section-id="6139da96d203ef247abc5142"] .content-wrapper {
    width: 50%;
    margin-right: 0 !important;
  }

  section[data-section-id="6139da96d203ef247abc5142"] .content-wrapper a {
    font-size: 10px;
  }
}

Let me know how it works

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted

Hello @bangank36, I would prefer to have the picture first and then the text with the white background.

In other words, I would prefer it in vertical and not in horizontal as you just did. Do you know what I mean ? 

Posted
20 hours ago, iJizzy1 said:

Hello @bangank36 and @tuanphan, could you find a solution ? 😇

 

Have you changed your password? soleil is  not possible at the moment

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

  • 2 weeks later...
Posted

@iJizzy1 Add to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="6139da96d203ef247abc5142"] {
&:before {
    content: "";
    display: block;
    background-image: url(https://images.squarespace-cdn.com/content/v1/6139da96d203ef247abc5117/1638185519604-55XFEVKX7XX5WE8T2LCB/fond-ecran-iphone-samsung-gratuit-ciel-nuage.jpg?format=original);
    width: 100%;
    height: 150px;
    background-size: cover;
    background-repeat: no-repeat;
}
img {
    opacity: 0;
}
.content-wrapper {
    background-color: white;
}
& {
    height: 420px !important;
    display: block !important;
}

.section-background {
    background-color: transparent;
}
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.