Jump to content

How to make a full-with image block or section. Also want to know how to remove the padding between each section

Go to solution Solved by tuanphan,

Recommended Posts

_20230505162903.thumb.png.435f217a5638fdc35841e75991c97598.pngHello all,

I would like to know how to make a  full-with image block or section.

I have tried this css code to achieve the full with image block:
#imageblock { width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; padding: 17px 0!important; }

However, it may have the huge padding at top and bottom so I would like to know how to remove these padding between each section or other ways to make a full-with image block or section.

Thanks! 

Edited by mark910112
Link to comment
  • Replies 4
  • Views 403
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

Yes I can. I have made a sample page that has the same question as I mentiond before.

The link is :
https://viola-chinchilla-xcye.squarespace.com/home1

The visitng code is: VzRr7j

When you access the site, you can see there is a padding between the first section and second section. Also, the first section's image block cannot be a full-with in the first setcion.  Thus, I would like to know how to solve these issues. Thanks!

Link to comment
  • Solution
On 5/8/2023 at 7:15 AM, mark910112 said:

Hi,

Yes I can. I have made a sample page that has the same question as I mentiond before.

The link is :
https://viola-chinchilla-xcye.squarespace.com/home1

The visitng code is: VzRr7j

When you access the site, you can see there is a padding between the first section and second section. Also, the first section's image block cannot be a full-with in the first setcion.  Thus, I would like to know how to solve these issues. Thanks!

Add to Design > Custom CSS

/* First section image fullwidth */
.fe-64583d18309abf23a6376e8c {
    grid-gap: 0 !important;
    display: block !important;
}

 

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!)

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...

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.