Why Nostr? What is Njump?
2024-07-29 18:26:45

Tom Walker on Nostr: #css This is nowhere on Stack Overflow (that I can see) so I'll put it here. This is ...

#css

This is nowhere on Stack Overflow (that I can see) so I'll put it here.

This is how to stop your page from scrolling horizontally without resorting to JS nonsense.

html, body {
max-width: 100%;
overflow-x: hidden;
position: relative; /* this is the one everyone misses out! */
}

The problem is that you have some position: absolute element poking out. position: relative at root level forces a 'container'.
Author Public Key
npub1q88kqzwung4z5upfg55f3j7uk5xfz3yuuat5g0m5wgy5ek05fucsz260ks