@AGutierrezR
Posted
Hello!! It looks great!! I have a few suggestions that might be useful for you:
- Try not to you fixed sizes (like
width: 375px
at line 20 in the Style.css file), usemax-width
instead, this help you to have room for screen less than375px
. - In order to avoid the
<br/>
tag, you could use:- Use
padding
in thediv.card-text
element, to narrow the space to achieve the line break - Use a
max-width
withch
unit, and reduce the number of characters per line
- Use
- If you want to use better names for the colors, you could CSS Custom Properties for them:
and use them in their respected places::root { --clr-white: hsl(0, 0%, 100%); --clr-light-gray: hsl(212, 45%, 89%); --clr-grayish-blue: hsl(220, 15%, 55%); --clr-dark-blue: hsl(218, 44%, 22%); }
This way, you don't have to guess the color by HSL codehtml { background-color: var(--clr-light-gray); } /* ... */ h2 { padding-top: 20px; color: var(--clr-dark-blue); } p { color: var(--clr-grayish-blue); } /* ... */ .attribute a { color: var(--clr-light-gray) /* ... */
Marked as helpful
@MauRamos0
Posted
Thank you, I will try that with my next project. @AGutierrezR