Jump to content

How to make a code block full width?

Recommended Posts

  • 5 months later...

@tuanphanIt looks like you might have the answer to my question. I am trying to embed an ESRI Story Map into my website and can't seem to get it to be full width. Where do I put the code that you provided above? the Custom CSS section, or the CSS attached to the window i've embedded a source code into?

Thanks for any help.

Link to comment
2 hours ago, jsmithsb said:

@tuanphanIt looks like you might have the answer to my question. I am trying to embed an ESRI Story Map into my website and can't seem to get it to be full width. Where do I put the code that you provided above? the Custom CSS section, or the CSS attached to the window i've embedded a source code into?

Thanks for any help.

Can you share link to that page?

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
  • 1 year later...

Was trying to solve this problem for two days before finally finding the solution somewhere else online! This worked for me:

1) Target your block of code, ideally using a class that you set within the block rather than a page section, and make sure you've applied the following (as folks have mentioned above):

Quote

 overflow-x: hidden !important;
 max-width: 100% !important;

2) CRITICAL: If it hasn't worked, edit your code block's settings and set the Content Width to "L." (See attached.)

omg.png

Link to comment
On 5/6/2021 at 12:33 AM, mitchelhunt said:

Was trying to solve this problem for two days before finally finding the solution somewhere else online! This worked for me:

1) Target your block of code, ideally using a class that you set within the block rather than a page section, and make sure you've applied the following (as folks have mentioned above):

2) CRITICAL: If it hasn't worked, edit your code block's settings and set the Content Width to "L." (See attached.)

omg.png

To find block id, use this tool. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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
  • 8 months later...

Hello, I am running into a simliar issue.

I used Elfsight to create a video slider for a client's website that i'm building on squarespace.

I cannot get it to go full screen and I am not sure what to use for the class ID. I downloaded the chrome extension to find the squarespace IDs and I have tried both the code block ID and the Section ID and am not having any luck with either.

https://www.volterratechnology.com/

That is the website. It is the homepage slider that i'm having troubles with. Hopefully, someone can help!

 

Thanks in advance!

Link to comment
On 8/20/2019 at 7:32 AM, tuanphan said:

@grayscaleprint code block, you mean Maps?

Try this

 
 div#map-block-liverpool-page {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


Tried this today. Doesn't seem to be working for me. I am using Squarespace 7.0 and using the block's ID #. Please help

 

 

Link to comment
On 2/3/2022 at 12:50 AM, MitchTheBoss said:

Hello, I am running into a simliar issue.

I used Elfsight to create a video slider for a client's website that i'm building on squarespace.

I cannot get it to go full screen and I am not sure what to use for the class ID. I downloaded the chrome extension to find the squarespace IDs and I have tried both the code block ID and the Section ID and am not having any luck with either.

https://www.volterratechnology.com/

That is the website. It is the homepage slider that i'm having troubles with. Hopefully, someone can help!

 

Thanks in advance!

It looks fine to me. Did you solve it?

On 2/4/2022 at 1:52 AM, pkoziol said:

I am doing this for a code block, and it isn't working. Refer to the comment I just made plz & thank you!

Can you share link to page where you use Code Block? We can check 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!)

Link to comment
On 2/11/2022 at 10:55 PM, pkoziol said:

Add to Design > Custom CSS

div#block-yui_3_17_2_1_1644594799064_1892 {
    width: 100% !important;
}
body#collection-6206866a0aa116132ae6c6ba section.Main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !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
13 hours ago, tuanphan said:

Add to Design > Custom CSS

div#block-yui_3_17_2_1_1644594799064_1892 {
    width: 100% !important;
}
body#collection-6206866a0aa116132ae6c6ba section.Main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

 

You're a hero. Thank you.

Link to comment
  • 3 months later...

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.