There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
I have noticed that letter-spacing also gives the same amount of space after the last letter of the text. Is there an efficient way to stop this or compensate for it?
If you use it only on headings then it is not an issue since headings do not end with a full stop and typically have no punctuation. In paragraphs we should not mess with letter spacing.
CSS Typography lesson has some examples when we use ‘em’ for a unit. As i understood, the difference between ‘em’ and ‘pixel’ is that ‘em’ is a relative unit while a ‘pixel’ is an absolute unit.
Could anyone give some examples when we should use ‘em’ rather than ‘pixel’ in practice?
Even if you shouldn’t mess with the letter-spacing property of <p> elements, you can fix the problem @thesethneal mentioned by wrapping the last word in a <span> element and adjusting this <span>'s letter-spacing property
As this post mentions, the value assigned to the word-spacing property will actually get added to the default value instead of it being the final value. This means that if we assign 0.5em to the word-spacing property of an element, it will actually have 0.75em of word spacing as 0.25em (the default word spacing) + 0.5em = 0.75em. The same thing applies with letter spacing