From the course: CSS Essential Training

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Project: Prepping the CSS file

Project: Prepping the CSS file - CSS Tutorial

From the course: CSS Essential Training

Project: Prepping the CSS file

(techno music) - [Instructor] In this project update, we're going to set up the CSS file. Also, you'll need to have your color palette handy. If you'd like to use mine, the values are listed in a text file in the exercise files. I often use CSS comments to add notes that I can reference while I'm building out the website. So, let's add these hex codes to the CSS file instead of using a separate text file. We'll add the comment block to the top of the file. Start with a slash, then asterisk, and add the color palette. Then, close the comment with the asterisk and slash. This will make it easier to copy and paste the values when needed. In addition to notes, I also start projects by adding comments to organize the CSS into related blocks. CSS files usually start with the general styles, which I'll refer to as global styles. For organizational comments, I like to use a line of dashes to create a visual divider between…

Contents