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

  1. 1
    Make Atomic Git Commits
    3 people · 4 points · first shared 2022 · discussion on HN
  2. 2
    Why I don't like Tailwind CSS
    1 people · 294 points · first shared 2021 · 312 comments on HN
  3. 3
    Overzealous Destructuring
    1 people · 81 points · first shared 2022 · 43 comments on HN
  4. 4
    Creating Perfect Font Fallbacks in CSS
    1 people · 29 points · first shared 2024 · 7 comments on HN
  5. 5
    Let me opt in, not out
    1 people · 4 points · first shared 2025 · discussion on HN
  6. 6
    SVG Tutorial: How to Code SVG Icons by Hand
    1 people · 3 points · first shared 2021 · discussion on HN
  7. 7
    Gated Content, Broken Locks
    1 people · 2 points · first shared 2022 · discussion on HN
  8. 8
    Modern techniques for writing better CSS (2021)
    1 people · 2 points · first shared 2023 · discussion on HN
  9. 9
    Does Web Performance Matter? It Depends
    1 people · 1 points · first shared 2020 · discussion on HN
  10. 10
    Modular Arithmetic and the Diffie-Hellman Algorithm
    1 people · 1 points · first shared 2022 · discussion on HN
  11. 11
    The AI Dilemma
    1 people · 1 points · first shared 2026 · discussion on HN
  12. 12
    Remote code execution with LLM agents
    1 people · 1 points · first shared 2025 · discussion on HN
  13. 13
    A Tale of Two Routes
    1 people · 1 points · first shared 2025 · discussion on HN
  14. 14
    62 5 percent font size trick
    1 people · first shared 2024
  15. 15
    Blue people illustrations
    1 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.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close