Design comparison
Solution retrospective
What are the best practices for spacing out text? I used <br/> tag twice for seperating the text, which feels very noob-like. Well I am a noob anyways...
Community feedback
- @PiotrPlotastPosted over 1 year ago
"What are the best practices for spacing out text?" - you could read this article about text-formatting, it briefly explains text formatting properties that you could use to space out text. Also you should use
em
andrem
units for font size and widths. For responsiveness you could use max-width instead of width.Marked as helpful1@mihirbhatkarPosted over 1 year ago@Pietrelll Thanks for the tips, will definitely look into it. Can you tell me why should I use
em
andrem
for font size? Also, I had read somewhere that one shouldn't useem
andrem
for sizing containers/layouts when doing a responsive layout, is that true?0@PiotrPlotastPosted over 1 year ago@mihirbhatkar here's a great article about why you shouldn't use px for font size and it tells you that most of the time you should use
rem
and sometimesem
because this units scale perfectly fine for all users and their font settings, whichpx
units won't do.%
,vh
orch
units could be used as well to do the job of sizing containers/layouts.1
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