customizer - menu - padding top % are vW and not vh
-
-
hey, next update will include:

-
Thank you @arminunruh, why not let user set %vh or %vw? There is some selector that not allow to specify what kind of %.
Is this too complicated? for example in customizer the padding top of the sitetite in % is refering to the width.
From a user perspective though, it can feel a bit unintuitive, especially when working with vertical spacing like padding-top, which visually feels related to height.
If choosing the unit were possible, it would be very nice
-
usually % is always width based, even if you set a margin top spacing.
quoting from gemini:
" if i set margin-top in % in css the percentage is based on a width right?
Yes, you've got it exactly right—though I'll admit, it’s one of the most "wait, really?" quirks of CSS.
Even for vertical properties like margin-top and margin-bottom, the percentage is calculated based on the width of the containing block, not the height.
Why does it work this way?The logic dates back to the early days of the web.
"my comment about this:
additionally, % based spacing values often are only percentages based on the width of the parent container, not the whole width of the browser
that is why in the background, i use vw instead of %
additionally, sometimes i actually use 100vw - space bar width
cause 100vw is 100% width of browser + space bar width, which can create x axis overflowi think i will leave it the way it is for now
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
