What does 100% mean in CSS? (2020)
61–70 of 72 posts
Re: What does 100% mean in CSS? (2020)
#62This is why I knew how to be a frontend engineer at one point in life but never pursued it past the early 2000s. The brainpower wasted on web layout is immense.
Re: What does 100% mean in CSS? (2020)
#63Re: What does 100% mean in CSS? (2020)
#64Re: What does 100% mean in CSS? (2020)
#65This is why I knew how to be a frontend engineer at one point in life but never pursued it past the early 2000s. The brainpower wasted on web layout is immense.
What about UI development is a waste?
Re: What does 100% mean in CSS? (2020)
#66This is why I knew how to be a frontend engineer at one point in life but never pursued it past the early 2000s. The brainpower wasted on web layout is immense.
Though it sure would be nice if people were exploring other approaches to reflowable layout without tying themselves to CSS and modern browsers’ codebases.
Re: What does 100% mean in CSS? (2020)
#67> The surrounding blue box is the parent element. (R: 93, G: 200, B: 195) That's more green than blue. When you consider that humans have stronger green color preceptors it's definitely green.
Re: What does 100% mean in CSS? (2020)
#68In 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.
box-sizing: border-box;
width: 400px;
might be the fix for that scenarioRe: What does 100% mean in CSS? (2020)
#69The slider knobs aren't vertically centered for me on that site (iOS Safari).
Re: What does 100% mean in CSS? (2020)
#70and the interesting "trick" I learnt the other day for fixed/absolute positioning, if you add inset:0rem; margin: auto; it will center vertical and horizontal it without having to translate it courtesy of Kevin Powell - https://www.youtube.com/watch?v=HOM47v73yG8 ( who I've found to be an amazing resource for learning all kinds of CSS info )
That's because `inset: 0rem` is equivalent to `top: 0rem; right: 0rem; bottom: 0rem; left: 0rem;` - which is a well know technique to force 100% height.