Live data from Hacker News

Learn CSS

web.dev

11–20 of 196 posts

Re: Learn CSS

#11

I've used CSS for close to 15 years. I've just never got around to really learning how it works. Every time I have to do it I manage to just about get by without actually learning it for real. But it's frustrating. I think it's about time I learnt it for real.

> I've used CSS for close to 15 years. I've just never got around to really learning how it works.

Same here. This also happens in other fields; my brother is a journalist, and most newspapers (here in Norway at least) fired most of their photographers when the industry suffered due to online papers not generating as much money. They thought it's easier to learn a journalist how to take pictures, than the other way around. I feel that most people who create webpages think similarly, i.e. it's easier to make the programmer learn how to create a good design + CSS etc. than learning a designer how to program... Both newspapers and webpages have suffered from these ideas I think; but money talks...

Re: Learn CSS

#12
post #10

A viable alternative to all this is using tailwind, can't recommend it highly enough. When you pass the initial period where you feel like you're repeating yourself (1h max) it takes the nervousness out of your CSSing, it feels more like coding and less like schmoozing.. Just a happy user

I like tailwind too but it's not an alternative to learning CSS. You still need to know CSS to be able to use tailwind

Re: Learn CSS

#14
post #12
post #10

A viable alternative to all this is using tailwind, can't recommend it highly enough. When you pass the initial period where you feel like you're repeating yourself (1h max) it takes the nervousness out of your CSSing, it feels more like coding and less like schmoozing.. Just a happy user

I like tailwind too but it's not an alternative to learning CSS. You still need to know CSS to be able to use tailwind

I agree with your first sentence, but not with your second.

For my own homepage i did not write a single line of css.

I am very, very bad with CSS and can't wrap my head around it, but tailwind allowed me to create a very pretty, responsive homepage with very high lighthouse scores (bought tailwind UI too).

Re: Learn CSS

#15
post #12
post #10

A viable alternative to all this is using tailwind, can't recommend it highly enough. When you pass the initial period where you feel like you're repeating yourself (1h max) it takes the nervousness out of your CSSing, it feels more like coding and less like schmoozing.. Just a happy user

I like tailwind too but it's not an alternative to learning CSS. You still need to know CSS to be able to use tailwind

Yes, very true.. But you just don't need to maintain the exploding specificity hell, instead use a declarative workflow, which is significantly easier to reason about.

Re: Learn CSS

#16
post #10

A viable alternative to all this is using tailwind, can't recommend it highly enough. When you pass the initial period where you feel like you're repeating yourself (1h max) it takes the nervousness out of your CSSing, it feels more like coding and less like schmoozing.. Just a happy user

Learning any CSS library is not alternative to learning CSS itself.

Re: Learn CSS

#17
post #10

A viable alternative to all this is using tailwind, can't recommend it highly enough. When you pass the initial period where you feel like you're repeating yourself (1h max) it takes the nervousness out of your CSSing, it feels more like coding and less like schmoozing.. Just a happy user

I like Tailwind so much. I wonder if there is a checklist of CSS things for common components such as buttons so that I can just follow that and get everything done with Tailwind without thinking much.

Re: Learn CSS

#18
post #7
post #2

I've always found CSS infuriating to use when working with it (albeit not often). This looks like a clean and easy to follow course so will be one for me to look at over the weekend.

I think most web users wished web devs understood CSS better (even if they don't know what it is.) I'd be willing to bet half the stuff things like React are used to do could be accomplished much better with a small amount of CSS and probably no javascript at all.

I’ve seen this more times than I can count…

A lot of people think of CSS as if it’s not code itself. Modularize it and create patterns like you would for any other piece of code(ie. react components), and it becomes fairly straight-forward to do things that would normally take 100+ lines of code in JS, in just a fraction of the time and code.

Re: Learn CSS

#19
post #14
post #12

Earlier quoted context omitted.

I like tailwind too but it's not an alternative to learning CSS. You still need to know CSS to be able to use tailwind

I agree with your first sentence, but not with your second. For my own homepage i did not write a single line of css. I am very, very bad with CSS and can't wrap my head around it, but tailwind allowed me to create a very pretty, responsive homepage with very high lighthouse scores (bought tailwind UI too).

> I am very, very bad with CSS and can't wrap my head around it, but tailwind allowed me to create a very pretty, responsive homepage

Congrats, you now know CSS! It sounds like I'm joking but honestly, Tailwind is essentially composable shorthand for CSS with a design system applied. If you grok Tailwind, you understand the concepts of CSS, you just might not know the full names for all the properties and values.

Re: Learn CSS

#20
post #10

A viable alternative to all this is using tailwind, can't recommend it highly enough. When you pass the initial period where you feel like you're repeating yourself (1h max) it takes the nervousness out of your CSSing, it feels more like coding and less like schmoozing.. Just a happy user

This is like saying an alternative to learning how to cook is to sustain yourself on takeaway.

Tailwind might be nice, but most projects will require in-depth knowledge about CSS.

Post reply on HN