Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    A

    Adam Schwartz

    adamschwartz.co · Personal blog · on HN since 2013

    Adam Schwartz, a front-end developer, writes about CSS, browser DevTools tricks, and small web UI experiments.

    Visit blogHN submissions
    Web DevelopmentDesign & UX
    What HN says

    Commenters recommend his Magic of CSS tutorial as a refresher and a foundation for understanding CSS, and praise his console logging page.

    Stats for nerds
    15HN people shared it
    18linked in comments
    551story points
    Apr 2019last shared
    2013people per year2019

    Top posts on HN

    1. 1
      Console.log with style
      2 people · 236 points · first shared 2013 · 56 comments on HN
    2. 2
      Chrome Inspector Detector
      1 person · 176 points · first shared 2013 · 86 comments on HN
    3. 3
      The Magic of CSS
      11 people · 114 points · first shared 2014 · 17 comments on HN
    4. 4
      Show HN: Chrome-style Tabs in HTML/CSS/ES6
      1 person · 9 points · first shared 2016 · Discussion on HN
    5. 5
      Sci Fi Coder
      1 person · 3 points · first shared 2013 · Discussion on HN
    6. 6
      The Magic of CSS
      1 person · 3 points · first shared 2014 · 3 comments on HN
    7. 7
      Learn how the browsers lays out elements
      1 person · 2 points · first shared 2014 · Discussion on HN
    8. 8
      Apple Watch drawing UI
      1 person · 2 points · first shared 2015 · Discussion on HN
    9. 9
      Show HN: Weather app with temp (23°) in favicon
      1 person · 2 points · first shared 2026 · Discussion on HN
    10. 10
      The Magic of CSS
      1 person · 2 points · first shared 2014 · Discussion on HN

    What HN people wrote when they linked it

    • adamschwartzNov 2014

      No doubt, at a certain point it does come down to aesthetic preference.

      Using a border-bottom to achieve the look you’re describing is totally a valid preference. One potential advantage to the border-bottom technique is
      the way it can be used to make a link stand out. In fact, I use this link styling on my personal website for that reason [1].

      (Note: when using a border-bottom, I’d recommend using a slightly larger line-height so that the line still seems associated with the text above it and not the text below it. This is one of the pitfalls described in the original Medium post [2].)

      Unfortunately, aside from iOS 8, normal text-decoration underline links have the descender crossing problem.

      I absolutely took this into consideration when designing SmartUnderline. SmartUnderline literally only applies itself to links with text-decoration underline, nothing else. It even tries to ensure other conditions which make the transformation favorable (display inline, solid background color, etc.).

      Ultimately I think the before-and-after on the SmartUnderline website tells the best story [3]. No doubt one may appreciate other, very different link styles. (For example, just using a different text color to denote _link_ is a perfectly valid and commonly used technique.) But if you’re using text-decoration underline already, this just makes those links look better.

      I think blogs, news articles and wikis are some of the primary examples of where these links look best. Anywhere…

    • asbJan 2015

      Adam Schwartz's Magic of CSS has a nice trick for getting the same effect without needing a custom font.

      See it in action at http://adamschwartz.co/magic-of-css/potions/two-pane-app/

      The relevant CSS is in http://adamschwartz.co/magic-of-css/css/potions.css:

      .mock-paragraph b {
      display: -moz-inline-stack;
      display: inline-block;
      vertical-align: middle;
      *vertical-align: auto;
      zoom: 1;
      *display: inline;
      background: rgba(0, 0, 0, 0.1);
      width: 3.125em;
      height: 0.5em;
      margin-right: 0.3125em;
      margin-bottom: 0.3125em; }
      .mock-paragraph b:nth-last-child(4n+1) {
      width: 4.5625em; }
      .mock-paragraph b:nth-last-child(10n+1) {
      width: 0.875em; }
      .mock-paragraph b:nth-last-child(9n+1) {
      width: 5em; }

    • vogtSep 2016

      Thanks! I don't know of anything to speak of like Tony's courses but they look great and I will try them.

      http://adamschwartz.co/magic-of-css/ This material, while not a course per se, was really integral to me understanding just how CSS works at a foundational level. The interactivity was very helpful to me.

      https://www.udacity.com/course/intro-to-html-and-css--ud304 If you are really at a true beginner level, Udacity's Intro to HTML and CSS was phenomenal, and free. They cover everything I think you need to really get started, and as you seemed to enjoy the video material, I imagine you will enjoy this.

    • swahApr 2014

      Nice. But when I tried the http://adamschwartz.co/magic-of-css/potions/two-pane-app/, you get a little of scrolling on the right pane. Why does that happen?

      (I'm making a similar layout and had to start doing stuff in JS...)

    • p4bl0Mar 2014

      This is a nice link, but it would have been better to link directly to the content http://adamschwartz.co/magic-of-css/ rather than the github repos.

    • declankApr 2019

      Happy easter :) If you already know some HTML/CSS I recommend https://adamschwartz.co/magic-of-css/

      I often use it as a refresher

    Related

    Eager Blogeager.io52 people

    Languages Which Almost Became CSS

    Eager Blog
    Company · last shared 2022
    Jake Archibaldjakearchibald.com191 people

    I discovered a browser bug

    Jake Archibald
    Personal · last shared 2026
    Adam Argylenerdy.dev19 people

    Googler... ex-Googler

    Adam Argyle
    Personal · last shared 2026
    Bret Victorworrydream.com936 people

    A brief rant on the future of interaction design (2011)

    Bret Victor
    Personal · last shared 2026
    Dev.Operadev.opera.com159 people

    CSS: It was twenty years ago today

    Dev.Opera
    Company · last shared 2024
    Adam Wathanadamwathan.me92 people

    CSS Utility Classes and “Separation of Concerns” (2017)

    Adam Wathan
    Personal · last shared 2026
    Peter-Paul Kochquirksmode.org266 people

    Web vs. native: let’s concede defeat

    Peter-Paul Koch
    Personal · last shared 2026
    Matt Webbinterconnected.org128 people

    I wish my web server were in the corner of my room

    Matt Webb
    Personal · last shared 2026