Toot

Written by the harbinger of eternal sept on 2025-01-17 at 16:49

i generally love css, but if i had to specify my least favorite implication

i really don't like that child margins affect the bounding box of the parent node

just doing a simple width: 100%; height: 100%; position: relative; thing to put something position: absolute; top: 0; right: 0;

that's css for "make a thing take up the full screen with something in the top right corner"

then by putting a heading, h1, with default margins, it then drops the thing in the top right down by the margin.

i get it, but i also don't get it. there really isn't a thing to get other than, that's just how margins work.

everything stays aligned to the margins, so the solution is to just not use margins, since i want a flush layout.

=> More informations about this toot | View the thread | More toots from tychi@merveilles.town

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113844718994132465
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
231.424455 milliseconds
Gemini-to-HTML Time
0.631821 milliseconds

This content has been proxied by September (ba2dc).