Design comparison
Solution retrospective
Using clamp property for font-size
What challenges did you encounter, and how did you overcome them?Separating the profile names from the image and the text before the link, but I solved that issue using padding, and line height.
What specific areas of your project would you like help with?How to make use of the font files instead of google fonts link
Community feedback
- Account deleted
Hi JoyObaidu,
I wanted to share some feedback regarding this challenge.
-
Use the
<article>
tag for defining independent content -- in this case, the profile card. -
Avoid nesting the
p
tag inside aspan
tag since thep
tag is a block-level element. It's best to usediv
for grouping content for both inline and block-level elements instead ofspan
for the different parts of the code below:
<span class="name"> <p>Jessica Randall</p> <b> London, United Kingdom</b> </span>
<span class="links"> <a href="#"> GitHub</a> <a href="#">Frontend Mentor</a> <a href="#"> LinkedIn</a> <a href="#">Twitter</a> <a href="#"> Instagram</a> </span>
-
Also, include a heading tag on your card. At this part:
<p>Jessica Randall</p>
, I suggest switching thep
tag to anh1
tag. -
To use the font files, use the
@font-face
rule in your CSS to set up the font.
@font-face { font-family: [any font name]; src: url([font url]); } /* Now you can use the font in your page */ body { font-family: [the font name used in @font-face]; }
I hope you find this feedback helpful. Good luck with your next challenge!
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