Tips for Working with CSS
- Think of every setting/option in css as a sentence. It has to end with punctuation (in this case ";") or the computer will have a hard time understanding what you are telling it to do.
- Text that is surrounded by "/*" and "*/" is ignored by firefox/chrome/etc. and is meant for the programmer to explain their code to the person reading it.
- Everything is case sensitive in CSS, so "Background-Color" and "background-color" aren't seen as the same thing to the computer.
- While looking through the HTML of this website, if you don't know what something is, just search for it and you will find an explanation for it.
- There are many good websites and youtube videos that teach you how to write CSS. I'd recommend NOT paying for a "bootcamp" or some course on it. You can easily learn CSS yourself, even if you don't know much about technology yet. You just need to know how to google or ask questions.
body {
/* This turns the background-color of the website black and the text-color green */
background-color: black;
color: lightgreen;
/* This centers the entire webpage */
padding-left: 25%;
padding-right: 25%;
}
/* This indents the text (p stands for paragraph in HTML) by 26 pixels*/
p {
text-indent: 26px;
}