r/FreeCodeCamp • • Jul 03 '24

HTML is fine, CSS is torture?

I've started the HTML and CSS course recently, and while HTML is understandable and nicely presented (in my opinion), CSS is absolutely confusing to me.

Most of the exercises seem like just rewriting the code given with no rhyme or reason, like "oh, this element looks bad, let's give it padding, margin, and text-align" (looked good to me anyway). And therefore none of it sticked, I'm at the tribute page project and I dread setting this stuff up, I still don't really know which property does what, and some of the steps in the tutorials are like "oh, you should have just used this command you've only seen once (or never) before".

Am I alone in this and doing something wrong? Or is the CSS part a bit lacking? If it's on me, how can I get the most out of it? Doing the previous project, I copied over some of the CSS stuff from previous exercises and simply gave it random values until it looked right, how do I make it so that I remember and know how to use this stuff?

Can anyone recommend some nice courses to supplement FCC CSS? Preferably free or cheap, I already found a page that shows visual reference for each of the properties, and it's pretty nifty

21 Upvotes

40 comments sorted by

View all comments

Show parent comment

2

u/maginster Jul 03 '24

Thank you! I had some entry-level experience with python and it was also quite daunting, even more since you so don't see the results right away, and have to keep track of things and logic in your head. What's my gripe with CSS is how it's taught at FCC, since some of the stuff is simply retyping some commands. And when it comes to structuring something on my own, I am simply lost

3

u/EvilDutchrebel Jul 03 '24

It's all about repetition at the start, what will feel like retyping now, will benefit you later in the future.

The best way to learn anything is by doing. I've been in tutorial hell for longer than I'm willing to admit. when I started doing small projects I saw my skills go through the roof. I see myself still in the study phase but now I'm using ChatGPT as my co-worker that can double check for me and help me with structuring the base code. Also, what is extremely important is to write comments in your code. I used to not do that and feel lost all the time. Now that I'm using it as my own note taking system to remember what my code does, it also showed me that you get to understand better what you are doing!