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

Tell us what’s happening:
Describe your issue in detail here.
I have the code correct but the browser is not displaying the div with the marker class. But when I put a text in the div the text dispays
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>Colored Markers</title>
    <link rel="stylesheet" href="styles.css">
    <h1>CSS Color Markers</h1>
    <div class="container">
      <div class="marker">
/* file: styles.css */
h1 {
  text-align: center;

.marker {
  width: 200px;
  height: 25px;
  background-color: red;

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 11; TECNO PR651E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36

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

Link to the challenge:

The instruction : To center your marker on the page, set its margin property to auto . Have you tried doing that I am not seeing margin property in your CSS.

1 Like

Hi there, you do not see a red rectangle in the preview area?

Have you tried to disable all extensions in the browser than may interfere with freecCodeCamp?

1 Like

Thanks for the reply. It’s worked.

1 Like

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