Jump to content

Remove as much blank space around margins as possible on blog pages

Recommended Posts

Site URL: https://vizchange.net

I have a website where I present climate and weather data visualizations. I have it setup on several tablet and touchscreen computers at a national park visitor center and hotel. I am trying to minimize the scrolling on pages to encourage the website to be explored as much as possible, so I am trying to limit any hurdles on various devices, for example, scrolling.

If you go to an example visualization (blog entry), I would like to maximize the space used for the visualization. I would like to reduce the empty space to the left and right of the data visualizations and the space above and below. Each blog page (where the individual visualizations are located) should fit to a screen on any device without or with as little scrolling as possible.

I am familiar with CSS coding, but still a novice. I have no spacer blocks and have no side-bar navigation menus.

Any suggestions for solving this problem and improving the layout to maximize the user experience with the visualizations is much appreciated. BTW: this is a pilot project!

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

You'll likely want to put it into Blog Item Code Injection but it's not really going to work. See, you could do something like the following:

article.entry {
  padding: 0!important;
}
.blog-item-inner-wrapper, .highcharts-container, svg.highcharts-root {
    width: 100%!important;
}

However, the "High Charts" widget that you're using is set for a max-width of about 900px so that's going to mean visually you probably won't see much difference.

I'd first look at the code you're using there and see if there's an option to make it full width.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

Link to comment
3 hours ago, Kwamzilla said:

You'll likely want to put it into Blog Item Code Injection but it's not really going to work. See, you could do something like the following:

article.entry {
  padding: 0!important;
}
.blog-item-inner-wrapper, .highcharts-container, svg.highcharts-root {
    width: 100%!important;
}

However, the "High Charts" widget that you're using is set for a max-width of about 900px so that's going to mean visually you probably won't see much difference.

I'd first look at the code you're using there and see if there's an option to make it full width.

I can definitely change the size in High Charts. However, I still want to reduce the space top, bottom, left and right of the blog entry. I tried your code and it does not work. Suggestions.

Link to comment
On 8/10/2021 at 11:59 PM, keithwlarson said:

I can definitely change the size in High Charts. However, I still want to reduce the space top, bottom, left and right of the blog entry. I tried your code and it does not work. Suggestions.

Hi. Do you still need help?

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

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.