Skip to main content

Included javascript

Blockhead includes a few small automation scripts to make maintaining a site easier.

Scrollbar width update

Blockhead automatically checks for a scrollbar & adjusts the Scrollbar Width variable, which recalculates column widths in order to avoid horizontal scrolling. By default, the Scrollbar Width variable is set to 0px, which means browsers that display a scrollbar (chiefly Windows browsers) might see a slight adjustment on page load. If the variable is set to 17px, browsers that don't display a scrollbar (chiefly Mac browsers) might see the slight adjustment. Optionally, splitting the difference (8px) will lessen the adjustment by half but display for all users.

To remove this adjustment entirely, it's recommended to hide the scrollbar for all browsers & set the Scrollbar Width variable to 0px.