Melody Nomás ☆ Aomine Daiki's Girlfriend

melody-nomas.neocities.org

855,935 views
596 followers
12,204 updates
0 tips
melody-nomas updated their site.
1 month ago
12 likes
melody-nomas's avatar melody-nomas 1 month ago

Hi, everyone! Does anyone know the CSS code that “trims” PNG images to their edges so they don’t overlap with what’s underneath them? I don’t know how to explain it! Let’s say I place some text and a PNG image next to it, and it won’t let me select the text underneath the image even though the image has a transparent background. There’s a CSS code that prevents that from happening! But I forgot it. <|3

2 likes
catgutstew's avatar catgutstew 1 month ago

if im understanding right, maybe clip-path could work?

1 like
zhongvie's avatar zhongvie 1 month ago

pointer-events: none disables mouse interaction if you don’t want the image to be selectable/block stuff

2 likes
greenbox's avatar greenbox 1 month ago

like others are saying, z-index or pointer-events. pointer-events: none; will no longer allow the image to be clicked, and z-index sets the order of the elements, so the text could be 2 and the image 1, the text will be on top of the image. also, if the image is added after the text in html u will always have this problem without intervention

Website Stats

Last updated 6 days ago
CreatedAug 5, 2024

Tags

books spanish selfship yumeship blog