CSS Project
To complete the CSS section of your tech prep work, you will need to style the HTML page you created in the HTML project. If you were unable to complete that project, the starter code below has been provided for you.
The website does not need to look perfect, but you should be able to demonstrate your understanding of the CSS concepts you have learned so far.
Requirements
There are no strict requirements for what your final page should look like, but here are some guidelines and suggestions to get you started:
- Give the
<body>
abackground-color
. - Use a type selector to target the
<h1>
element. Center the text and give it acolor
. - Give the
<img>
aborder
and usemargin
to give it some space. - Use a type selector to target all
<h2>
elements and change theircolor
. - Use an ID selector to target the
#description
div. Give it apadding
and aborder
. - Use a class selector to target the
.ingredients-section
. Give it abackground-color
andpadding
. - Target the
<li>
elements within the.ingredients-section
and change theircolor
. - Target the
<a>
elements and change theircolor
. Try to remove the underline as well. - Experiment with different
font-family
values for your headings and paragraphs. - Use the descendant combinator to target the
<ul>
inside the#more-recipes
div and remove the bullet points.
Feel free to get creative! The requirements above are just a starting point. The goal is to practice using the CSS properties and selectors you’ve learned about.
IMPORTANT - SAVE YOUR WORK
You may choose to complete this project using the code editor below or in your own editor of choice, however you must save your work somewhere permanent (either locally as a file on your computer or on GitHub in a repository) for later reference.
The editor below currently does not have a save feature, so be careful when navigating away from or reloading the page. We recommend using a local editor to complete the project; the editor below is only provided for convenience.
Example Solution
Here is an example of what a completed project could look like.
Remember, there is no single “correct” way to style this page. Use this as inspiration!