Tell us what’s happening:
Describe your issue in detail here.
My code on line 31 seems to be correct but will not pass. The preview of the label looks correct. I have checked 2 different posts here on the forum. When I copy their syntax it screws my label. Still, when I try to skip this step it shows the label with the wrong span. Your code so far
Kindly refer to the correct lesson,your code is on Cafe Menu lesson while your title reads the nutritional label lesson,this causes a lot of confusion.
Welcome to FCC Forum.
No worries! We all make mistakes.
Could you please post the code for us to look at for the Nutrition Step 43?
As well, sometimes, a browser extension or just a browser are the cause of issues when the coding is correct. When I know mine is correct, I check for an extension first and disable it, and try another browser for submitting the lesson, if the extension is not a problem. Happy coding!
I posted it in a new post. its the last line. As I said in this post the code won’t pass and I’ve lookedon the forum for answers.I have tried the code shown on the forum that must have passed but it won’t for me!
The new post was unlisted as a duplicate post even though the wrong code was listed.
It’s really unimportant if I solve this asI can skip the whole lesson. I don’t see where or how to post the code. The new post had it.
You don’t need a span around 8g by itself. There should be span that goes around total fat, a span that goes around total fat and 8g then a span around 10%. You need to remove the span thats just around 8g, and add another span that goes around both total fat and 8g
If it still does not accept it, I suggest checking if there is an extension on the browser causing the issue. I have found that at times this can create the issue, or sometimes, the browser itself. And, it is all random by the browser.
When the 8g text is combined in the Total Fat span it makes the 8g bold. The label shows no bold 8g. Direction says an additional span for 8g.
On the label when you start this section there is no space between Total Fat 8g. Total fat is bold 8g is not. How do I add the 8g and not have it come out bold?
I apologize for my response time. I was checking it in my own lesson.
It should not be showing as bold, too, if it is wrapped as suggested, Chuck. Sorry!
The first closing span element should be directly after the Total Fat, as you have it. The second closing span element should be after the 8g. This should prevent the bold from carrying through to the 8g.
< p>< span > < span class=“italic” > Total Fat< /span > 8g< / span> should display the Total Fat in italic, not the 8g.
The above is strictly for an example.
I hope you did not think I was saying your were doing it wrong. I found I was having difficulty getting my correct code to work too. I needed to try another browser to get it to work.
Please let us know if there is still an issue with it? We will figure out a way to help you.