DEV Community

Discussion on: component #2 - Card

aut0poietic profile image

Again, nice one Joimee.

Silly suggestion: If you'd rather only supply the background image on the card (and leave the background-position/size/repeat in the class), you can try use background-image in the inline style instead of background

<div class="card" style="background-image: url(...)">...</div>

Keep it up!

oieeaaaa profile image
Joe Author


I think I should have utilize the background shorthand capability and just leave out the background-position/size/repeat from the inline style. But I went with background only because I thought it's cute. LOL 😂

I've just updated the sandbox. Thanks Jer.