Learn basic CSS by building a cafe menu Step-39

Step 39
That’s closer, but the price didn’t stay over on the right. This is because inline-block elements only take up the width of their content. To spread them out, add a width property to the flavor and price class selectors that have a value of 50% each.

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

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

1 Like

css rules need to end with a semicolon

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