Frontend Mentor - Project tracking intro component
Design comparison
Solution retrospective
Open to suggestions!!!
Community feedback
- @Juljus777Posted over 2 years ago
To fix the problem, where text, with letter spacing, dosen't get centered correctly inside an element, you could wrap the text inside a span tag and style it with margin-right:-"letter-spacing of the text".This would fix the text centering inside the (NEW) element.
Also using either margin-left or margin-right depends on the text element "direction" property. So if text runs from rtl (right to left) you will want to use -margin-right and when it runs from ltr you will want to use -margin-left instead.
0@MadflowsPosted over 2 years ago@Juljus777 I forgot to add the font to my css... Everything is actually okay
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord