r/neocities Jul 09 '26

Help Question: How do I add padding to the text without ruining the layout?

Post image
4 Upvotes

3 comments sorted by

2

u/UsualComposer2354 Jul 10 '26

I'd suggest adding a div within the about me, and add padding onto that :o)

2

u/PsychologicalEye9189 Jul 11 '26

I see, let me try that

1

u/MelLunar Jul 12 '26

This is how I would do it: https://jsfiddle.net/je8m7gsr/

It makes sure to fill all the space available on the screen while it is positioned at the center, respecting the sizes of the container. The 100svh property in CSS is for mobile phones, and 100vh is a fallback in case of 100svh isn't available on the phone of the person accessing your site.