Need help on step 25 CSS Cafe

Tell us what’s happening:
Describe your issue in detail here.

The hint says “You should set the width property to 80% .” How do I do that?

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
  <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" type="text/css" />
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
/* file: styles.css */
body {
background-color: burlywood;

h1, h2, p {
text-align: center;
div {
width: 80%px;
background-color: burlywood;
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 OPR/86.0.4363.70

Challenge: Step 25

Link to the challenge:

Percentages don’t need a unit. They stand alone. 80% means “80% of the width of the element’s parent’s width”.


will you wrote % and px. use one of them it can either be 80% or 80px theres no such thing as 80%px

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.