Submitted almost 2 years ago
Frontend Mentor Challenge - Huddle landing page with a single introduc
@RthSoldan
Design comparison
SolutionDesign
Solution retrospective
Why I can't put a margin on a "a" element?
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hi there 👋. Good job on completing the challenge !
The margin in the <a> tag the margin doesn't work because it's an inline element. Similarly, you cannot specify the width and height of an inline element in CSS, because they will be determined by the content itself. You must change its
display
property toinline-block
orblock
.Happy coding!
Marked as helpful1
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