Notice how the text 8g appears centered in the preview. Nest the span element containing the text Total Fat along with the text 8g, in an additional span element for alignment.
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
That’s not what I see in the html file.
In the html file you use the span element twice on the same content like this. <span><span>content</span></span> so that’s twice a span for one content item.
remove the first "span class=“bold” and the second “slash span”
btw: you’re using forward ticks, the button besides should be the back ticks.
<!-- remove both span element parts I marked as wrong -->
<span class="bold">
<span> <!-- this span is wrong -->Total Fat<!-- put a /span here> 8g</span><!-- this </span> is wrong -->
</span>
<span class="bold">10%</span>
Mod Edit: SOLUTION REMOVED
This is the right code, check it with what you typed word for word.
use your 3 back ticks on a new line when you use them and put your code on here. I know it’s tedious but we’ll get there. Check whether your code shows up in your message, otherwise it’s really difficult as I always have to inspect your code throug other means.
<span class="bold"> try it out, you can edit your message if necessary.
I just see why you get a mistake. I’m quite rusty and made another mistake. Just a minute.