nmk Posted September 17, 2020 Share Posted September 17, 2020 (edited) I'm looking for a way to remove spacer blocks for a certain minimum screen size (for phones, ipads, small 13" laptops). Currently, the spacer width I have for a 27" screen stays the same for an ipad screen and it looks... messy. I'm left with a long vertical sliver of text at the center of the screen with huge margins on the side I know squarespace automatically removes spacer blocks that are next to other blocks when viewed on mobile. But this doesn't happen for ipads and small laptops. Even better would be a way to set the padding width directly (xxpx) Edited September 17, 2020 by nmk Link to comment
nmk Posted September 25, 2020 Author Share Posted September 25, 2020 (edited) Still looking for a way to set spacer block width... Anyoneeee Edited September 25, 2020 by nmk Link to comment
tuanphan Posted September 26, 2020 Share Posted September 26, 2020 Add to Home > Design > Custom CSS /* Remove spacer block */ @media screen and (max-width:1000px) { .space-block { display: none !important; } } you can adjust 1000 to another number Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message 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
nmk Posted October 3, 2020 Author Share Posted October 3, 2020 On 9/26/2020 at 6:33 PM, tuanphan said: Add to Home > Design > Custom CSS /* Remove spacer block */ @media screen and (max-width:1000px) { .space-block { display: none !important; } } you can adjust 1000 to another number Thanks for your response @tuanphan This removes the blocks but the text does not expand to fill up the free space, it remains the same width and is left aligned instead of center aligned Is there a way to expand the text block to take up the freed up space? Link to comment
tuanphan Posted October 3, 2020 Share Posted October 3, 2020 13 minutes ago, nmk said: Thanks for your response @tuanphan This removes the blocks but the text does not expand to fill up the free space, it remains the same width and is left aligned instead of center aligned Is there a way to expand the text block to take up the freed up space? Can you share link to page in your question? We can check easier. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message 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
nmk Posted October 3, 2020 Author Share Posted October 3, 2020 17 minutes ago, tuanphan said: Can you share link to page in your question? We can check easier. Thanks for such a timely response @tuanphan really appreciate it Here's a page from my site as an example (password: projects886): https://www.narmeen.design/scallion the spacers are removed for an ipad's screen size and lower: // for ipad @media only screen and (min-width:701px) and (max-width:1232px) Link to comment
tuanphan Posted October 4, 2020 Share Posted October 4, 2020 On 10/3/2020 at 10:07 AM, nmk said: Thanks for such a timely response @tuanphan really appreciate it Here's a page from my site as an example (password: projects886): https://www.narmeen.design/scallion the spacers are removed for an ipad's screen size and lower: // for ipad @media only screen and (min-width:701px) and (max-width:1232px) On 10/3/2020 at 9:32 AM, nmk said: Thanks for your response @tuanphan This removes the blocks but the text does not expand to fill up the free space, it remains the same width and is left aligned instead of center aligned Is there a way to expand the text block to take up the freed up space? Which text? Can you take a screenshot? We can check easier. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message 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
nmk Posted October 4, 2020 Author Share Posted October 4, 2020 10 hours ago, tuanphan said: Which text? Can you take a screenshot? We can check easier. Thanks @tuanphan I use spacers to center text on the entire page, so once spacers are removed all the text shifts to the left instead of just expanding. I've attached a couple of screenshots from the page I linked to Link to comment
tuanphan Posted October 5, 2020 Share Posted October 5, 2020 @media only screen and (min-width:701px) and (max-width:1232px) { .spacer-block { display: none; } div#page-section-5f0210a1dc3ce86c6be2585c .span-9 { width: 100%; } div#page-section-5f0210a1dc3ce86c6be2585c .span-9 .span-3 { width: 45%; } } creedon 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message 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
nmk Posted October 7, 2020 Author Share Posted October 7, 2020 thanks @tuanphan This code fixes only the first paragraph (shown in your screenshot). The rest of the page remains the same (I've attached a screenshot showing this) Do you know how I can target all text on the entire site instead of a specific div? Link to comment
nmk Posted October 9, 2020 Author Share Posted October 9, 2020 In case somebody finds it useful: I resolved this issue by using the site-wide spacing setting instead of using spacers to control content width. The page width is fixed and does not change depending on the screensize, so that solved my issue of having too narrow of a content width on smaller screens Dyo and creedon 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment