Design comparison
Solution retrospective
There were a lot of challenges.
-
I could not get the font to work right, despite using an import from Google Fonts, a
@font-face
rule & referring to the font files in the directory. I had to ask for help before I got them to display correctly. -
I did not know how to move text away from bullets in a list. I Googled and found this solution:
.list-text { position: relative; left: 1rem; }
By surrounding text with a span, and assigning this class, the text would indent away from the bullet. However, this led to another issue because I had set
list-style-position
toinside
. To fix this, I removed that rule and changed how I padded lists to this:ul, ol { display: block; padding-inline-start: 1.5rem; }
With this, the list text is formatted & indented correctly.
What specific areas of your project would you like help with?I used a single media query, kicking in once the screen width surpasses 568px. The reasoning is the rest of the code is responsive & I don't need many breakpoints (for multiple screen sizes).
Community feedback
- @jonathanudehPosted 24 days ago
To move text away from bullet you just have to give the ol or ul ul { list-style-position: outside; padding-left: 20px; }
ul li { padding-left: 5px; }
at least thats how i did mine
list style position put the bullet outside the ul/ol and then the padding moves it left or right depending on your taste and the padding for li moves the text away left or right also depending on your taste
0@henrychrisPosted 24 days ago@jonathanudeh yeah this also works, I just left it the way it currently is.
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