📝 This Week in Web Design and Development

View this newsletter on the web.

Ever heard of the scroll-margin-top CSS property?

Neither had I! Perhaps its most useful ability is for when you have a fixed header on a website and want to use jump links. This way you can nudge the content so that it’s always visible, like this:

There’s been a bunch of times in the past when I’ve clicked on a link on a website and the fixed header has messed with the new scroll position so thankfully this solves that problem entirely!

Also, there’s an interesting new feature coming in Chrome called Text fragments that let you link to any highlighted text on a page. (Note how it scrolls you to the middle of the page… interesting eh?)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s