Learn Basic CSS by Building a Cafe Menu - Step 40

Tell us what’s happening:
First of all thank you freecodecamp for teaching us.

I have successfully reached on Step-40, and I am stuck here. I need guidance in this, where I am wrong, or I am unable to understand

Your code so far

.flavor {
text-align: left;
width: 49%;
}

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

French Vanilla

3.00

```html Cafe Menu

CAMPER CAFE

Est. 2020

Coffee

French Vanilla

3.00

Caramel Macchiato

3.75

Pumpkin Spice

3.50

Hazelnut

4.00

Mocha

4.50

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

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

.menu {
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
}

.item p {
  display: inline-block;
}

.flavor {
  text-align: left;
  width: 49%;
}

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

Your browser information:

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

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

Link to the challenge:

Just follow the instruction, and use the backspace on your keyboard to move the p element with the class price next to the p element with the class flavor

<pclass=“flavor”>French Vanilla

<pclass=“price”>3.00

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