Error message is…
Your p element with the text % Daily Value * should have no-divider added to the class attribute. Do not remove the existing classes.
I don’t understand what i’m doing wrong.
Thanks
This is my code:
% Daily Value *
<div class="divider"></div>
<p><span><span class="bold">Total Fat</span> 8g</span><span class="bold">10%</span></p>
<p class="indent no-divider">Saturated Fat 1g<span class="bold"> 5% </span></p>
</div>
Teller
July 14, 2024, 12:13am
2
Welcome to the forum @Salbutita
Your p
element with the text % Daily Value *
should have no-divider
added to the class
attribute. Do not remove the existing classes.
You also need to add the class to the following p
element.
Happy coding
There was already ident class in p element to add no-divider i just have to had it beside ident class between " " ?
Teller
July 14, 2024, 12:26am
5
I cannot see any code.
So the forum can assist please post your full code.
Use the following method to post code to the forum:
On a separate line type three back ticks.
On a separate line paste your code.
On the last line type three back ticks. Here is a single back tick `
Happy coding
1 Like
Teller
July 14, 2024, 12:35am
7
The error message is for the p
element with the text % Daily Value *
Please post your full code.
I’m trying to post my code with the three back ticks. i hope it’s gonna work
<div class="daily-value small-text">
<p class="indent no-divider"> % Daily Value * </p>
<div class="divider"></div>
<p><span><span class="bold">Total Fat</span> 8g</span><span class="bold">10%</span></p>
<p class="indent no-divider"> Saturated Fat 1g <span class="bold"> 5% </span></p>
</div>
yééeee I’m new. I’m almost 51 . Just finished infography school after a work accident left me unable to work in manutention and i had to start over in something else and it’s hard. I always beeneasy learning with informatic but learning coding is something else complitly hahaha
Teller
July 14, 2024, 12:50am
10
Here is a comparison of the original code and your code.
The code in blue is the original code, the code in red is your code.
The code in magenta is the overlap.
You appear to have modified the existing classes in the p
element.
Please remove indent
and replace it with bold right
classes in the first p
element.
Happy coding
2 Likes
Thanks you so much, i probably change it by mistake. learning that hahahha
2 Likes