r/csshelp • • Oct 28 '16

Best way to learn CSS from 0?

0 experience in CSS, I want to learn it.

I have seen across reddit the following websites: https://developer.mozilla.org https://www.codecademy.com/ http://learnlayout.com/

Which of the 3 is the best? Because in past experience learning code wrong on a website just messes up a lot with you and makes more hard to watch a right tutorial.

8 Upvotes

5 comments sorted by

8

u/spicedpumpkins Oct 28 '16

Disclaimer: I am not a CSS expert by any means, but learned enough to get the look and feel I wanted to achieve for my own subs /r/MostBeautiful and /r/FuckMusic. In addition /r/CSShelp has been a major resource for helping me figure out things I just couldn't get right. This place is awesome.

I started with ZERO CSS knowledge and started with following:

  1. I hit youtube and watched and learned EVERY CSS video from this guy.

  2. Once I was comfortable with that, I learned from the shoulders of giants, that is, I looked at subs I liked the elements and looked at their CSS stylesheet and began to go piece by piece and figure out what element did what.

  1. I learned how each piece worked by using the "Inspect Element" feature. In a windows PC you RIGHT CLICK on any part of a sub and from the menu you choose "Inspect Element". For the most part it gives you everything that controls that specific part of the sub. You can actively change elements you see (such as color, font sizes, etc while in this mode and it will show you immediately how it would look and since you are not a mod of that sub, it doesn't/can't save it).

  2. I used the following resources to learn how to code specific parts of a sub:

https://www.reddit.com/r/csshelp/wiki/moresnippets

and for colors

http://www.w3schools.com/colors/colors_picker.asp

and

https://color.adobe.com/create/color-wheel/

to help me pick pleasing complementary colors.

5) I learned to LABEL almost every element of my subs (because I knew I would forgot what does what and where things were). You can do this by incorporating the /* in front of any message, description, info, etc and */ at the end. This does not affect the CSS code in anyway, it allows you to free text.

e.g. / * SIDEBAR I M A G E currently set at a max of 300 pixels by 300 pixels * /

(note I had to put a SPACE between the / and the * here to keep Reddit from formatting italics text but when you do it, no space)

followed by the code for it

6) When you are done ALWAYS make an offsite backup of everything you have done in a separate word/doc file by CTRL A + CTRL C then paste in your document. Having an offsite current backup is invaluable in case of a major problem or if you accidentally save a major mistake. I save my with date and version so I have every major update I've done to my subs.

7) I also created a dummy sub to practice everything in BEFORE I make it go live in any of my subs.

This is by no means a huge resource but I hope this helps you enough to get started. If I can remember anything else, I'll add to this post.

3

u/DonManuel Oct 28 '16

What a wonderful posting, great answer. I'm always frustrated if such effort to help gets so little upvotes, no matter if it's mine or the others.

1

u/[deleted] Oct 28 '16

He did a great answer, indeed. But there is quite some stuff into it:

These are fake internet points, they don't do much to your life. Sure they are nice and all but not near as what you will get:

He might have helped me or 3 people (out of the 7 that upvoted), maybe these will make great CSS's in the future and he influenced it!

Or people might hyperlink to his comment and use it as a reference to learn CSS. Either way, he did a great job and great answer.

2

u/DonManuel Oct 29 '16

These are fake internet points, they don't do much to your life.

Thank you, but I'm old enough to know. However these fake points are the best way on reddit to show your appreciation, that's what is called a symbol.
Symbols have symbolic value, but that might be too sophisticated for many.

3

u/SwordOfBraavos Oct 28 '16

I am a personally a fan of Khan Academy. They make good content and its well taught. But for a subreddit the best bet for finding the specific things you want to code is: watching youtube videos, reading and posting /r/csshelp questions, and reading tutorials.