Learn Basic CSS by Building a Cafe Menu - Step 62

Tell us what’s happening:
Hey just asking why is my code wrong . it aways ask‘s me for selector for h1 and h2 but i don‘t got it.

Your code so far

/* file: styles.css */
body {
  background-image: url(https://cdn.freecodecamp.org/curriculum/css-cafe/beans.jpg);
  font-family: sans-serif;
}

.h1{font-size:40px;}
.h2{font-size:30px;}

.established {
  font-style: italic;
}

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

.menu {
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  max-width: 500px;
}

h1, h2 {
  font-family: Impact, serif;
}

.item p {
  display: inline-block;
}

.flavor, .dessert {
  text-align: left;
  width: 75%;
}

.price {
  text-align: right;
  width: 25%
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

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

Link to the challenge:

h1 and h2 are not classes, they are elements.
Remove the dots to make element selectors.

1 Like

remove the dots of .h1 and .h2 they are element not classes

1 Like