Hacker News new | ask | show | jobs
by enyo 1235 days ago
Learn how to create an accessible hamburger button with pure HTML and CSS and why that is important.
3 comments

Not really super important, but thoughts on using an SVG when the same hamburger button affect can be generated with just a tiny bit of HTML/CSS? As little as one element with :before/:after for the top/bottom bars, although sometimes it needs a wrapping element for best styling.
BTW, it's been ::before/::after (pseudo-element, not pseudo-class) since IE9 (2011).
Oh sure, I am aware, just mis-typed it in the comment.
Unrelated: the image on the home page has a low resolution and doesn't look good ...
Which image (and which browser)?
The CTA one, looks fuzzy to me (both firefox and chrome) https://i.imgur.com/xVXWiGn.png Resolution: 2k and 1080p
Thanks for letting me know! Seems to happen because it’s not a high dpi screen. I’ll get on it.
Second one(the guy on his pc), vanadium
providing complete copy pastable code with good default styling would help improve the article