I need the red background color to cover the whole top half of the card and not over the picture

Hi @gtrman97,

The div element with id = ‘card’ has an attribute of

padding-top: 70px;

This is putting the extra gap between the div id=“card” and div id =“color” elements.

Yes but I think I need that bc I also want the circle pic to have some padding from the top of the card border.

Just to confirm my understanding, you want the complete top part to have a bg color of red and a bit of padding for the image?

Have you tried putting the padding-top attribute in the div id=“color” element instead?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.