DEV Community


Is CSS Hard?

Oyetoke Toby
Just a software engineer trying to make ends meet. My passion for Python and JavaScript is nothing to compare.
・1 min read

Discussion (12)

steveblue profile image
Steve Belovarich • Edited

No. CSS could be considered hard because the topic is rarely taught in a way that allows people to understand how it behaves. Code academies focus on JavaScript.

Ditch the CSS libraries and start writing CSS from scratch. It’s the only way you will learn.

Topics to focus on to become brilliant at CSS

  • variables
  • selectors
  • specificity
  • cascading
  • box model
  • position
  • float
  • flow
  • flexbox
  • grid

That seems like a lot of topics, but it’s really not that bad considering how much there is to learn about a programming language. CSS is not programming (however some post processors like SASS introduce more programming like syntax). CSS is a style sheet language more focused on formatting which is why some people find it difficult. It’s hard to switch contexts like that.

It helps to have some knowledge of design or computer graphics, but you don’t have to.

iamschulz profile image
I am Schulz

It's a tough question to answer.
CSS is easy for me. It well structured, has well established patterns and a manageable number of oddities. With it's descriptive nature and instant visual feedback, it's even easy to learn. Then again, I've been working with CSS for about 15 years.

Is CSS hard for someone who hasn't seen it grow? Possibly.

jamesmkenny profile image
James Kenny • Edited

No it isn't hard but it can have a steep learning curve and finding the right resources to learn with can prove troublesome. CSS can be as simple or as complex as you want to make it. As others have said ditch the fancy frameworks and go back to the basics.

At it's heart CSS is a language that sets a style to something. Once you understand that and play with it a bit than you can really start to see how simple CSS can be.

This from Mozilla covers some of the basics CSS basics

Also this from CSS Tricks

georgecoldham profile image
George • Edited

No, its different from every other language you will use. Most people wont bother learning the intricacies and how it works etc, then get frustrated when things go wrong.

Here is a brilliant resource currently being built. It aims to teach best practices for common layouts.

evanoman profile image
Evan Oman

people wont bother learning the intricacies and how it works etc, then get frustrated when things go wrong

It me.

jameesy profile image
Jamees Bedford

Yes and no.

Everyone finds different things hard. I find CSS not too bad and find more general programming concepts take me a long time to learn and get my head around, however, people I have spoken to are the other way round.

I think it's important not to ask questions like this and just dive in and find out for yourself.

You can learn the fundamentals of the language, or dive deep into the features. It's entirely up to you. I speak to so many people who get so fixated on learning the entire CSS language off the top of their head before working on Javascript and that's just not realistic. I have to constantly Google how to do even the simplest things in CSS, but having a good understanding of the fundamentals and how things work is more than enough.

celestialcinnamon profile image
Francis Rubio-Salmazan

CSS is just like any other language, I think. It's just as hard as any other programming language. Just as other languages have standard libraries, complicated concepts, CSS also have similar concepts like writing modes, formatting contexts, and all these other things that are much more important than syntax.

tl;dr: CSS is hard, but so are other languages.

scottishross profile image
Ross Henderson

CSS is easy. The concept of design and how to use CSS to get what you want can be difficult.


brandelune profile image
Jean-Christophe Helary

No. Not hard at all. Hard to master, just like anything, though.

taillogs profile image
Ryland G

No. It’s incredibly rule based and predictable. It does help to have basic understanding of angles and ratios.

burjwalcodes profile image
Gaurav Burjwal

I' m learning right now, and finding it hard :(

anpos231 profile image

Don't listen to weird people. Try it and answer that question yourself.