@Diarrah
Posted
To get a straight line across + not have color spilling over the sides you can't do border-top, you have to do a pseudo-selector. Just position:absolute, place at top, give height of 5px & then do overflow: hidden on the card itself.
Hope to help, Diarrah
@VincenzoMarcovecchio
Posted
@Diarrah thanks Diarrah I remember once I came across something like object-fit : cover
so I was a little bit confused but yeah no problems thank you