Hello, can someone tell me why this code doesn’t display the price on the far right?
I know there are better ways to write it in CSS but for now I’m just following the course, trying to apply the tools they gave and I just want to understand why the price shows on the left when I did this on Visual Studio to practice (works on freeCodecamp preview and it’s the same code). Thank you so much!
The width is invalid, so .flavour and .price width will be their content’s width.
That’s why you can’t see the text inside .flavour is right align.
A tip to debug your code:
Set outline for the element to see its width and height. For example:
.price {
outline: 1px red solid;
{
For the next time, you can post your code by put your code between 2 line of ``` (3 back ticks) (the back tick key is usually right under the Esc key on your keyboard), like this:
```
# your code here
```
or you can use the Preformatted Text button (the one with </> icon) (or press Ctrl + E):