DEV Community

component #2 - Card

Joe on July 11, 2019

What I have learned? CSS can be simply complex. How to make a wave effect. Using the *:not(:last-child) selector. I feel like I'm...
Collapse
 
aut0poietic profile image
Jer

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!

Collapse
 
oieeaaaa profile image
Joe

Thanks!

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.