Skip to content

GenerateStuff

GeneratePress & GenerateBlocks how-to tutorials.

  • Home
  • Contact

Custom Properties

Dynamically set custom property –masthead-height

I wanted this in order to properly set scroll-padding-top for ‘Back to Top’ and other anchor links. I like setting my primary navigation to Float Right, so when displays get narrower, often the hamburger menu slides down under a wide logo or Site Name, changing the height of the #masthead. This makes setting a static …

Read more

Categories Uncategorized Tags Custom Properties, JavaScript
Copyright © 2025 GenerateStuff.com All Rights Reserved.