Jump to content

code block scrolling question

Recommended Posts

Posted (edited)

I have a scrolling issue on a code block. If you use the scroll buttons it likes to scroll beyond the content in the block. How do I get it to stop scrolling at the end of the content.

I moved the link for the page up to the header for easy access. It's called Cryptocurrency Dashboard. The code block is at the top of the page called "Forking/Halving Events".

 

Edited by madseason
Posted

The embedded code contains an iframe which has a margin.

622766808_ScreenShot2022-09-29at2_15_18PM.thumb.png.a70a552b35ec737a5c5d1ca1ee5120ca.png

The only way to get rid of that margin is only possible if the system that generated the embedded code allows you to get rid of it there.

Because of browser security it is not possible, in this case, to reach into an embedded code and change it from within your SS site.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted (edited)

Thanks! They do provide this on the site. Not sure what this all means in addition to the code that is posted on my site.

nicehash.png

Edited by madseason
Posted

As shown in my screenshot you can see a class name of mb80. That appears to control the margin you see at the bottom of the table. I'd look for a setting of some kind. As you see from the CSS other similar class names such as mb0 exist, which I assume is zero margin.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted

No settings. 

The widget code they provide is below. I edited the width and height to get it into the space on my site.

<iframe src="https://widget.nicehash.com/countdown" width="100%" height="350" scrolling="no" id="nhiframe"></iframe>

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.