sireesanwar: (Default)
sireesanwar ([personal profile] sireesanwar) wrote in [community profile] style_system2025-04-14 05:39 pm

Journal Whole Page Width Issue

 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 [personal profile] sireesanwar . I can not figure out why my journal is like 150% wide. Anyone see what I'm not?
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2025-04-16 10:51 pm (UTC)(link)

Whoohoo! Yeah, width: 100% frequently behaves in confusing ways, unfortunately.

momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2025-04-17 11:42 pm (UTC)(link)

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).