Email or username:

Password:

Forgot your password?
Top-level
Roma Komarov

@nikitonsky Re: CSS stuff.

The position of the font in the line-height could be possible to fix in the future (developer.mozilla.org/fr/docs/, no Safari support for now, sadly).

Aligning icons to the middle of cap-height: blog.kizu.dev/cap-height-align with the `cap` unit, we can do even without known icon size (via middle align + negative margin and a difference between `ex` and `cap`).

1 comment
Roma Komarov

@nikitonsky Also, for flex/grid centering:

- If the element is guaranteed the only one, `margin: auto` on it is often enough.

- Otherwise, `place-items: center` + `place-content: center` will work equally on both flex and grid (as it does both align+justify, so covers either, and easier to remember this case).

Go Up