Live data from Hacker News

Hell Yes CSS

wizardzines.com

1–10 of 120 posts

Re: Hell Yes CSS

#2
CSS is not as traditional an experience but is so fundamental to succeeding as a front-end developer. I really love that this is a Zine as well!

Re: Hell Yes CSS

#3
For the bottom two columns on the page, shouldn't the second column break below the first column in a mobile/responsive view? I normally don't get picky about css stuff except for when it is in css tutorials lol.

Re: Hell Yes CSS

#4
post #2

CSS is not as traditional an experience but is so fundamental to succeeding as a front-end developer. I really love that this is a Zine as well!

Would you explain what you mean by CSS not being as traditional an experience? Compared to what? Agree with the rest of your comment...

Re: Hell Yes CSS

#5
post #2

CSS is not as traditional an experience but is so fundamental to succeeding as a front-end developer. I really love that this is a Zine as well!

Would you explain what you mean by CSS not being as traditional an experience? Compared to what? Agree with the rest of your comment...

Programming, I'm guessing. Page layout was its own weird world even before HTML came along, and the explosion of devices and use cases has made the domain much weirder. Put 25 years of CSS evolution on top of that and it's very much its own beast. As somebody who's done mostly back-end work lately, whenever I approach CSS it's one WTF after another.

I keep hearing that it has settled down, though, so I am looking forward to learning it properly next I need to do something interface-y.

Re: Hell Yes CSS

#6
So many years into CSS and it's still damn near impossible to (a) vertically center multi-line text in a div (b) set the width of a div or video in units other than pixels and let the height be set based on an aspect ratio. Both result in nested div hell.

Re: Hell Yes CSS

#7
post #6

So many years into CSS and it's still damn near impossible to (a) vertically center multi-line text in a div (b) set the width of a div or video in units other than pixels and let the height be set based on an aspect ratio. Both result in nested div hell.

The answer to (a) (along with many other things) is to use Flexbox:

  .my-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
This should work for (b) as long as the height isn't in terms of a percentage:

  .my-video {
    --my-video-height: 120px;
    height: var(--my-video-height);
    width: calc(var(--my-video-height) * 16/9);
  }

Re: Hell Yes CSS

#9
post #7
post #6

So many years into CSS and it's still damn near impossible to (a) vertically center multi-line text in a div (b) set the width of a div or video in units other than pixels and let the height be set based on an aspect ratio. Both result in nested div hell.

The answer to (a) (along with many other things) is to use Flexbox: .my-container { display: flex; justify-content: center; align-items: center; } This should work for (b) as long as the height isn't in terms of a percentage: .my-video { --my-video-height: 120px; height: var(--my-video-height); width: calc(var(--my-video-height) * 16/9); }

You can also use grid and the place-content shorthand!

These things are getting better. CSS was a nightmare in the 2000s.

Re: Hell Yes CSS

#10
post #3

For the bottom two columns on the page, shouldn't the second column break below the first column in a mobile/responsive view? I normally don't get picky about css stuff except for when it is in css tutorials lol.

I think you’re saying that you think the “I want this!” and “Commonly asked questions” should appear after the “Table of contents” and “take a peek inside” on small screens, because on larger screens they appear to the right of it (rather than to the left).

Why? Having it this way round is definitely less common than the other, but by no means is it rare, and there’s nothing at all wrong with it.

Post reply on HN