Tribute Page - Trouble with CSS

Tell us what’s happening:

Describe your issue in detail here.

I’ve been building the tribute page and I noticed that none of my css styles are working on the preview. I tried multiple different selectors and styles but none of them change the content on the page. Any ideas that may be the issue? I added a few different examples (this is not the final css).

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0>
    <title>Tribute Page</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <main id="main">
      <h1 id="title">Carl Gustav Jung</h1>
      <p>World renowned psychoanalyst and psychiatrist</p>
      <div id="img-div">
        <img id="image" src="https://images.jpost.com/image/upload/c_fill,g_faces:center,h_537,w_822/505418" alt="Jung sitting at a desk with a pipe in his mouth in his office decorated with many books and a flower vase.">
        <div id="img-caption">
          Jung reading one of his many handwritten letters to fellow psychologists discussing ideas, opinions, and questions.
        </div>
      </div>
      <section id="tribute-info">
        <h3>A time line of Carl Jung's life:<h3>
        <ul>
          <li>
            1875 - Born in Kesswil, Thurgau, Switzerland
          </li>
        </ul>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */
body {
  font-family: sans-serif;
  background-color: #FFEDD5;
}

h1 {
  margin-top: 24px;
  text-align: center;
}

#title {
  text-align: center;
}

p {
  text-align: center;
}

Your browser information:

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

Challenge Information:

Tribute Page - Build a Tribute Page

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

you have a tipo here in meta tag , and the heading tag in the “timeline” section is not properly closed

yup the missing " was the issue! thanks!

1 Like

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