Learn CSS Colors by Building a Set of Colored Markers - Step 13

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

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>Colored Markers</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <h1>CSS Color Markers</h1>
    <div class="container">
      <div class="marker">
      </div>
    </div>
  </body>
</html>
/* file: styles.css */
h1 {
  text-align: center;
}


/* User Editable Region */

.marker { margin(top,right,bottom,left): auto; 
  width: 200px;
  height: 25px;
  background-color: red;
}

/* User Editable Region */


Your browser information:

User Agent is: Mozilla/5.0 (iPad; CPU OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/111.0.5563.101 Mobile/15E148 Safari/604.1

Challenge: {{challengeTitle}} Learn CSS Colors by Building a Set of Colored Markers - Step 13

Link to the challenge:

How will I set the margins to auto, the one I did is not working,

just write
margin:auto;
margin is shorthand property so you dont need to mention top right bottom left etc.
.Hope this helps /

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