![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Okay I've been working on Transmogrified as other themes I had some major frustrations with. I think I've figure most things out but suddenly I realized there is a horizontal scrollbar when there shouldn't be.

You can see it at
sireesanwar . I can not figure out why my journal is like 150% wide. Anyone see what I'm not?

You can see it at
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
no subject
Date: 2025-04-15 08:24 pm (UTC)That didn't work so I tried overflow-x: clip;
I think this prevents accidental scrolling over but that excess space isn't gone and I can't figure out why there is extra room there.
no subject
Date: 2025-04-15 11:42 pm (UTC)no subject
Date: 2025-04-16 06:49 pm (UTC)Thank you!
no subject
Date: 2025-04-16 08:56 pm (UTC)no subject
Date: 2025-04-16 10:07 pm (UTC)Oh - try adding
#lj_controlstrip { box-sizing: border-box}
(or, alternatively,#lj_controlstrip {width: calc(100%-2px);}
but I think box-sizing is probably less confusing).no subject
Date: 2025-04-16 10:25 pm (UTC)no subject
Date: 2025-04-16 10:51 pm (UTC)Whoohoo! Yeah,
width: 100%
frequently behaves in confusing ways, unfortunately.no subject
Date: 2025-04-17 06:10 pm (UTC)I used your width: calc(100%-2px) for another element that at 100% was not inline with everything else and now is perfect. So thanks for that too.
no subject
Date: 2025-04-17 11:42 pm (UTC)Yeah - basically, with the default box model, the width and height properties don't include border/padding/margins - so it ends up being 100% + however much those are (in this case, 2px, because of the 1px border on each side), and that can end up being more than 100%. The
box-sizing: border-box
makes the width calculation include border/padding (though not margin).no subject
Date: 2025-04-21 11:19 pm (UTC)