News for hackers. Stuff that matters.
Re:What does 100% mean in CSS? (2020) by pinteresting on Friday July 09, 2021 @06:17AM (#27782209)
In my limited experience I find CSS examples always make things look simple, but then in reality I'm forced to do something stupid like this for a 400px canvas:

            left: 50%;
            margin-left: -205px;
            border: 0px;
            width: 410px;
Because when sized to 400px it always clips 10 pixels of the canvas.
Re:What does 100% mean in CSS? (2020) by woodrowbarlow on Friday July 09, 2021 @12:17PM (#27785292)
i'd have to poke around to be sure, but i have a suspicion:

    box-sizing: border-box;
    width: 400px;
might be the fix for that scenario