Aleksandr Hovhannisyan
aleksandrhovhannisyan.com · Personal blog · on HN since 2020
Aleksandr Hovhannisyan, a front-end developer, writes about CSS, JavaScript, SVG, and Git practices.
What HN saysHN commenters link it for CSS tips like the 62.5% font-size trick and fluid type scales, and for his atomic Git commits post.
18HN people shared it
8linked it in comments
14stories submitted
424story points
9 months agolast shared
2020people per year2026
Most-shared posts
- 1Make Atomic Git Commits3 people · 4 points · first shared 2022 · discussion on HN
- 2Why I don't like Tailwind CSS1 people · 294 points · first shared 2021 · 312 comments on HN
- 3Overzealous Destructuring1 people · 81 points · first shared 2022 · 43 comments on HN
- 4Creating Perfect Font Fallbacks in CSS1 people · 29 points · first shared 2024 · 7 comments on HN
- 5Let me opt in, not out1 people · 4 points · first shared 2025 · discussion on HN
- 6SVG Tutorial: How to Code SVG Icons by Hand1 people · 3 points · first shared 2021 · discussion on HN
- 7Gated Content, Broken Locks1 people · 2 points · first shared 2022 · discussion on HN
- 8Modern techniques for writing better CSS (2021)1 people · 2 points · first shared 2023 · discussion on HN
- 9Does Web Performance Matter? It Depends1 people · 1 points · first shared 2020 · discussion on HN
- 10Modular Arithmetic and the Diffie-Hellman Algorithm1 people · 1 points · first shared 2022 · discussion on HN
- 11The AI Dilemma1 people · 1 points · first shared 2026 · discussion on HN
- 12Remote code execution with LLM agents1 people · 1 points · first shared 2025 · discussion on HN
- 13A Tale of Two Routes1 people · 1 points · first shared 2025 · discussion on HN
- 1462 5 percent font size trick1 people · first shared 2024
- 15Blue people illustrations1 people · first shared 2021
What HN people wrote when they linked it
Leftium · 2025-09-02
I discovered this CSS oddity while trying to figure out why my plan to use (negative) margins to create a new "effective" content box wasn't working with percent units (but worked with other units).
The best explanation seems to be in the middle of this article: https://www.aleksandrhovhannisyan.com/blog/css-aspect-ratio/#why-it-wo…
irrational · 2024-03-14
What about the font-size: = 62.5% trick?
html { font-size: 62.5%; }
https://www.aleksandrhovhannisyan.com/blog/62-5-percent-font-size-tric…
Has it gone by the wayside? Is it no longer a best practice?
lelandfe · 2022-12-19
Instead of loading in the page, and then accessing that image, disable the loading entirely by using e.g. `data-src` instead of `src` in the HTML. You then fetch() the URL in that data attribute in your Javascript.
Here's a straightforward tutorial covering that: https://trezy.com/blog/loading-images-with-web-workers [0]
Note that this does mean the images will be delayed from loading, and will cause a layout shift when they're finally inserted. It's best to inline the image's height & width into the HTML if you know them in advance (or use `aspect-ratio`): https://www.aleksandrhovhannisyan.com/blog/setting-width-and-height-on…
[0] Just as a note, the tutorial says "<img> tags actually block your application load," which is very wrong.
imron · 2022-09-04
Follow this: https://cbea.ms/git-commit/
and this: https://www.aleksandrhovhannisyan.com/blog/atomic-git-commits/
That way your "large change" becomes a collection of small, easy to reason about and well explained changes.
clairity · 2022-05-18
> "So maybe 'rems for body text, px for headings' is the way to go."
what's probably a little more useful is that headings scale up slower than body text, using different clamp() functions, e.g., https://www.aleksandrhovhannisyan.com/blog/fluid-type-scale-with-css-c…
ChrisArchitect · 2021-05-10
This is from January, there's other articles around mentioning this trend
Here's another angle: It's Killing Brands https://www.aleksandrhovhannisyan.com/blog/blue-people-illustrations/
aleksandrh · 2024-03-15
> The browser might default to 16px font size, but users can pick something else. So if somebody had poor vision and increased their default font size; or if they had a small laptop screen and decreased their default font size, 1em * 62.5% != 10px, everything the designer set in ems was a different size than they intended, and a lot of their page layouts disintegrated into an unholy mess.
Howdy, author of the article you're responding to (but not the person who originally discovered/pioneered this trick). This is not true, and my article explains why.
The 62.5% trick is rarely used on its own, but people often cite it this way, leading to confusion. In practice, you set the root font size to 62.5% (of the user agent font size) and then also scale all body text back up to 1.6rem so it's not stuck at 10px. From here on out, all font sizes remain proportional no matter what, even if a user changes their preferred root font size in browser settings. Play around with the math if you doubt it (the article offers examples).
> everything the designer set in ems was a different size than they intended
That's working as intended—your design will scale up or down, according to the user's preferred font size. If you don't like this, your only option is to set font sizes in pixels, which [you shouldn't be doing anyway](https://www.aleksandrhovhannisyan.com/blog/use-rems-for-font-size/) (disclaimer: also written by me).
wizzwizz4 · 2025-07-29
DuckDuckGo search results for "cli, extract frame 13s into video" (no quotes):
• https://stackoverflow.com/questions/10957412/fastest-way-to-extract-fr…
• https://superuser.com/questions/984850/linux-how-to-extract-frames-fro…
• https://www.aleksandrhovhannisyan.com/notes/video-cli-cheat-sheet/
• https://www.baeldung.com/linux/ffmpeg-extract-video-frames
• https://ottverse.com/extract-frames-using-ffmpeg-a-comprehensive-guide…
Search engines have been able to translate "vague natural language queries" into search results for a decade, now. This pre-existing infrastructure accounts for the vast majority of ChatGPT's apparent ability to find answers.