BlueCaret
BlueCaret
KPCKevin Powell - Community
Created by JJ on 11/22/2024 in #front-end
Need Help understanding this picture cut off effect
Are you expecting arbitrary images in the boxes? Or is it these images specifically? If it is just specific images you could just get a version of the image with it cut off within the graphic file. Then allow it to position against the edge with a padding of 0 on the edge, or maybe a negative margin depending on your setup. If it needs to be arbitrary images then I might try a div within the card that spans the full width and has a relative position and overflow hidden. Inside that div the image can be placed with a width larger than the card. The div should also only have padding on three edges. Kind of depends on your setup though, but that's how I'd start to attempt it.
3 replies