Chris Coyier
@adactio re: adactio.com/links/16470 and your universal rule idea, see @MiriSuzanne’s comment: css-tricks.com/fixed-headers-… (Will this turn into a webmention?)
I didn’t know about scroll-margin-top
! I wonder if you could apply a universal rule …like, say you’ve got a fixed header that’s 2em
in height, couldn’t you declare:
:target {
scroll-margin-top: 2em;
}
@adactio re: adactio.com/links/16470 and your universal rule idea, see @MiriSuzanne’s comment: css-tricks.com/fixed-headers-… (Will this turn into a webmention?)
This is a wonderfully in-depth interactive explainer on touch target sizes, with plenty of examples.
Such a clever minimalist use of CSS!
How do we write, design, and code a link that works for everyone on every device? Let’s dive into the world of creating the perfect link, without making a pig’s breakfast of it.
There’s a broader point here about declarative design:
Setting very specific values may feel like you’re in more control, but you’re actually rescinding control by introducing fragility in the form of overly-specific CSS.
Having fun with view transitions and scroll-driven animations.
The terminology of applying CSS.
A presentation at An Event Apart Seattle 2018.
A few things to remember if you’re going to using position:fixed.