r/csshelp • u/[deleted] • 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
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.
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:
I hit youtube and watched and learned EVERY CSS video from this guy.
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.
you can look at another sub's stylesheet by typing in the following: http://www.reddit.com/r/subredditsname/stylesheet
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).
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.