Assessment wanted for Fundamental CSS comprehension - Dimitar Danov

codepen link
Thank you!

Nice work @design.danov!

One thing to mention:
It’s recommended to use unitless numbers for line-height . For an explanation see: https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#prefer_unitless_numbers_for_line-height_values

For example by setting

.card h2 {
  font-size: 2em;
  line-height: 1.5;
}

this will result in the desired height of 3em (2em * 1.5).

I hope that helps,
Michael

1 Like