Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Cafe Menu</title>
<style>
h1 {
property: value;center
}
</style>
</head>
<body>
<header>
<h1>CAMPER CAFE</h1>
<p>Est. 2020</p>
</header>
<main>
<section>
<h2>Coffee</h2>
</section>
</main>
</body>
</html>
**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/14.1.2 Safari/605.1.15
Challenge: Step 12
Link to the challenge:
…?
You should the property you want to modify in place of property
and the value you want to set in place of value
.
This is similar to how you set an HTML attribute with the syntax attribute="value"
.
“text-align” is something called “property”
when its value is set to “center” the text will be center
so I have to change the word ‘property’ to what text-align?
h1 {
text-align: value; center
}
like this?
Do you use the word value
when setting an HTML attribute, like here:
Same thing applies for CSS. You don’t use the word ‘value’, you put the value you want to set.
thank you! You’re awesome
1 Like
system
Closed
10
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.