Learn Basic CSS by Building a Cafe Menu - Step 26

Tell us what’s happening:
Describe your issue in detail here.
Could you please help? I don’t know what to do there

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

h1, h2, p {
text-align: center;

div {
width: 80%;
background-color: burlywood;
  **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/15.4 Safari/605.1.15

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 26

Link to the challenge:

“You can do this by setting its margin-left and margin-right properties to auto.”

These are CSS properties that you want to set to auto. Just like you set the width to 80% and the background-color to burlywood.


Here you need to write to propreties: margin-left and margin-right with the value “auto”.
It will center the div element.

Hey @felicitie, we try not to post actual code solutions and instead help people find the solutions for themselves.

1 Like

Thank you for letting me now this. I deleted the code.
I’m new here. :slight_smile:

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