Jump to content

Full width Code Block (7.0)

Recommended Posts

Site URL: https://southtowncreative.net/product-photography-stand-out

Hi Friends. Looking to make this code block full width on my Square space 7.0 site. 

 

https://southtowncreative.net/product-photography-stand-out

#block-yui_3_17_2_1_1607120286605_3791


Searched a few posts and tried some of suggestions others have tried but nothing has really worked.

 

Any help would be much appreciated! Thanks!

Link to comment
1 hour ago, Pinkies said:

Site URL: https://southtowncreative.net/product-photography-stand-out

Hi Friends. Looking to make this code block full width on my Square space 7.0 site. 

 

https://southtowncreative.net/product-photography-stand-out

#block-yui_3_17_2_1_1607120286605_3791


Searched a few posts and tried some of suggestions others have tried but nothing has really worked.

 

Any help would be much appreciated! Thanks!

you can target the section id, you should change the section name to something meaningful and unique for this task

#new-page-2 .Index-page-content  {
    padding-left: 0;
    padding-right: 0;
}

image.thumb.png.b73870a69149d3e7ceb8108b2607c10e.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
2 hours ago, Pinkies said:

Thanks for your response.

Are you saying I should put:


#new-page-2 .Index-page-content  {
    padding-left: 0;
    padding-right: 0;
}

into the custom css portion of the site?
After adding it, it did not seem to do anything. 

try !important

#new-page-2 .Index-page-content  {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Thank you for your suggestion. I inserted the new code and it made it smaller. 

Previously I was using this CSS code:

div#block-yui_3_17_2_1_1607120286605_3791 {
    width: 100% !important;
}

That seemed to make it span the container of the site, but it failed to make it a full width. 

I have attached 2 images of what the site looks like with the two different codes.

1. "Before" was with this code:

div#block-yui_3_17_2_1_1607120286605_3791 {
    width: 100% !important;
}

2. "After" is with this code:

#new-page-2 .Index-page-content  {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

Any other help would be much appreciated. Thank you!

Before.jpg

After.jpg

Link to comment
53 minutes ago, Pinkies said:

Thank you for your suggestion. I inserted the new code and it made it smaller. 

Previously I was using this CSS code:

div#block-yui_3_17_2_1_1607120286605_3791 {
    width: 100% !important;
}

That seemed to make it span the container of the site, but it failed to make it a full width. 

I have attached 2 images of what the site looks like with the two different codes.

1. "Before" was with this code:

div#block-yui_3_17_2_1_1607120286605_3791 {
    width: 100% !important;
}

2. "After" is with this code:


#new-page-2 .Index-page-content  {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

Any other help would be much appreciated. Thank you!

Before.jpg

After.jpg

I am checking the issue again

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
6 minutes ago, Pinkies said:

Thank you 🙂

Hi, this code block did the trick, you can remove my provided snippet

div#block-yui_3_17_2_1_1607120286605_3791 {
    width: 100% !important;
}

image.thumb.png.718a4a33a1266b2b8d54c11174d5d2ed.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

In the end, the code that made a code block full width is this:

#new-page-2 .Index-page-content  {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
div#block-yui_3_17_2_1_1607120286605_3791 {
width: 100% !important;
}

 

The bold text denotes the names of the elements that are unique to your own website. 

Hopefully this helps someone in the future. 

Make sure to clear your cache after you do this so you can see the changes.

Edited by Pinkies
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.