Tutorial to follow. For now:
What you need to know from the lecture:
- Draw “invisible boxes” around your designs so you can begin to visualize how you’ll structure your code
- Make div elements in your HTML document for every box that you drew on your designs. (Be cognizant of where your opening and closing tags are if you have boxes within boxes)
- Give each of these div elements a unique class
- Copy the name of the classes into your CSS file and append them with a period
- This will be the foundation for our file and we’ll have what we need to start styling
Your HTML should have div elements that look like this:
<div class="my_class_name">Some text that goes in my div box</div> <div class="my_second_class_name">Some text that goes in my div box</div>
And your CSS file should have corresponding class names like this:
.my_class_name { }
.my_second_class_name { }
Please note!
There are no spaces in the class names! And the spelling of the class name on the HTML document must match EXACTLY the spelling of that name on the CSS document, or else your styles will not work!