rdg86
December 29, 2023, 1:44pm
1
Tell us what’s happening:
Hey there guys, I’m stuck in this step and tried a lot of different ways to complete it. Can someone help me understand what am I supposed to do?
Thanks
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cafe Menu</title>
<link href="styles.css" rel="stylesheet"/>
</head>
<body>
<div id="menu">
<main>
<h1>CAMPER CAFE</h1>
<p>Est. 2020</p>
<section>
<h2>Coffee</h2>
</section>
</main>
</div>
</body>
</html>
/* file: styles.css */
body {
/* User Editable Region */
background-color: burlywood;
/* User Editable Region */
}
h1, h2, p {
text-align: center;
}
#menu {
width: 300px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Safari/605.1.15
Challenge Information:
Learn Basic CSS by Building a Cafe Menu - Step 22
1 Like
Thank you for creating your own post and including all necessary information @rdg86 !
Now we can see how guide you to resolve the problem.
Here is an example of how to do this step.
/* User Editable Region */
It is expecting that the /* */ be placed on each side of the background-color: burlywood;
Exactly as the example is doing with the User Editable Region.
Do not include the body in the comment.
I hope this helps you.
Please let me know if you need more guidance with it?
3 Likes
Hey @rdg86
Comments in css are enclos3d using
/* */
So enclose the text inside them.
Happy cooding
Did that solve the issue for you @rdg86 ?
If so, could you please check of that it is solved so others know that you have resolved the problem?
Thanks and happy coding! You are doing great!
rdg86
December 29, 2023, 3:20pm
5
I understand that, I just can’t figure out where the comment line is supposed to be and I’m also not 100% sure of its content.
ILM
December 29, 2023, 6:16pm
6
you need to comment out a piece of code
comment out the line containing the background-color
property and value,
so you write the opening /*
before the css line, and */
after it
system
Closed
June 29, 2024, 3:53pm
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.