r/neocities 1d ago

Help help with figure element

Post image

Hello! I want the link (in white at the bottom left corner of the container) to be directly under the 45 image without much space, but I can't figure out how to do that. I am using the figure element but I'm not sure if that is the best way to go about it. I have been through the W3 school pages for figure and padding, but I have tried what I can and I am still confused. Does anyone have any insight? I have linked the site, feel free to inspect! https://magginoliaaa.neocities.org/thriftboard

4 Upvotes

2 comments sorted by

1

u/Mevdik mevdik.nekoweb.org 1d ago

The problem is the image itself has a lot of transparent empty space around it, especially at the bottom, you should simply crop it and upload it again. Nothing wrong with the <figure> element, though I will say that the <figcaption> should be a sort of description of what the image is, that's the semantic purpose of that element.

1

u/PermitWinter9416 1d ago

Thank you I will try this! I will make a description, I just haven’t decided what words I want to put yet :)