The slider knobs aren't vertically centered for me on that site (iOS Safari).
What does 100% mean in CSS? (2020)
51–60 of 72 posts
Re: What does 100% mean in CSS? (2020)
#52Re: What does 100% mean in CSS? (2020)
#53Sadly the most interesting CSS percentage mechanic is missing there: background-position Unlike all other cases, here `background-position-x: [25]%` means: > "Place image so its inner left [quarter] boundary matches inner left [quarter] boundary of its container." So 0% = align left edges, 100% = align right edges, 50% = align centers (= center) etc. Super intuitive on the first sight, but I was quite surprised how t…
Re: What does 100% mean in CSS? (2020)
#54Sadly the most interesting CSS percentage mechanic is missing there: background-position Unlike all other cases, here `background-position-x: [25]%` means: > "Place image so its inner left [quarter] boundary matches inner left [quarter] boundary of its container." So 0% = align left edges, 100% = align right edges, 50% = align centers (= center) etc. Super intuitive on the first sight, but I was quite surprised how t…
left: x%;
top: y%;
transform: translate(-x%, -y%);Re: What does 100% mean in CSS? (2020)
#55I still find it hard to believe that there is no CSS rule for "100% of viewport width, excluding the vertical scrollbar width".
https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-g...
Not something you can actually use though.
Re: What does 100% mean in CSS? (2020)
#56Re: What does 100% mean in CSS? (2020)
#57I still find it hard to believe that there is no CSS rule for "100% of viewport width, excluding the vertical scrollbar width".
Re: What does 100% mean in CSS? (2020)
#58> 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.
"Definitely" green is a difficult assertion to make universal. It's true that it has slightly more green than blue in the sRGB space, but the blue/green boundary is not as culturally universal as you may expect
Re: What does 100% mean in CSS? (2020)
#59> 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)
#60This 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.