Learn Typography by Building a Nutrition Label

I’m not necessarily having trouble following the instructions in this learning, however I noticed that I really don’t understand the reasons behind the steps being given to me.

Specifically, why does wrapping the text in span tags cause it to shift to the right or left of the daily value div? Is this something I’ll probably end up figuring out intuitively though practice?

I’m guessing it has something to do with the CSS styling applied to them. span elements by themselves do nothing.

It would help if you gave us an exact step number.

That’s exactly right, it has to do with the CSS styling. I think my confusion might start on step 40, step 41 being when the right-align styling is added. I think the classes for the text must be changing when they are spanned. I’m having trouble fully grasping why that is. Thanks

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