What did I do wrong here?


#1

What did I do wrong here guys?

The exercise: https://www.codecademy.com/paths/web-development/tracks/learn-html-web-dev-path/modules/learn-html-tables/projects/wine-festival-schedule


#2

Please post your raw HTML, along with the CSS. The picture helps us visualize the result but doesn’t help us find the error in your markup or style sheet.


#3
<body>
  <header>
    <h1>Annual Aguillar Family Wine Festival</h1>
  </header>
  
  <div class="container">
    <table>
      
      <thead>
        <tr>
          <th colspan="2">
            <h1> Wine Festival Schedule.</h1>
          </th>
        </tr>
        
        
        <tr>
          <th>
            <h2>Time</h2>
          </th>
          
          <th>
            <h2>Event</h2>
          </th>
        </tr>
      </thead>
      
      <tbody>
        
        <tr>
          <td class="left"></td>
          <h3>12:00 PM</h3>
          <td></td>
        </tr>
        <tr>
          <td class="left"></td>
          <h3>01:00 PM</h3>
          <td></td>
        </tr>
        <tr>
          <td class="left"></td>
          <h3>02:00 PM</h3>
          <td></td>
        </tr>
        <tr>
          <td class="left"></td>
          <h3>03:00 PM</h3>
          <td></td>
        </tr>
        <tr>
          <td class="left"></td>
          <h3>04:00 PM</h3>
          <td></td>
        </tr>
        
        
        
      </tbody>
      
    </table>

  </div>
body {
  background-color: #242f44;
  color: white;
    font-family: 'Oswald', sans-serif;
}

header {
  text-align: center;
  margin-top: 5px;
}

h1 {
  font-size: 36px;
  padding: 15px;
  color: #8c6b48;
  background-color: white;
}

h2 {
  font-size: 24px;
  padding: 15px;
  text-transform: uppercase;
}

h3 {
  font-size: 20px;
  padding: 15px;
  text-transform: uppercase;
  text-align: left;
  margin-left: 20px;
  font-weight: 500;
  line-height: 2.7;
  letter-spacing: 0.8px;
}

th {
  border: 2px solid #8c6b48;
}

table {
  text-align: center;
  margin: 20px auto;
}

td {
  border: 2px solid #8c6b48;
  width: 300px;
}

footer {
  margin-top: 50px;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 5px;
  background-color: #242f44;
  z-index: 5;
}
footer h3 {
  display: inline-block;
  font-size: 14px;
  background-color: #242f44;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  height: 800px;
}


.left {
  width: 150px;
}

#4

The H3 should be inside the TD. Those lines are currently printing directly to the BODY.


#5

Okay, Thanks :slight_smile: