One of the most perplexing and befuddling things in CSS for me, for many years, was the behaviour of percentage-based heights. Sometimes, seemingly at random, setting height: 100% would have no effect at all. When I finally figured out what was going on, it was like a puzzle piece snapping into place; everything made so much more sense! In this post, I’ll share the epiphany I had, and we’ll explore some solutions.
The Height Enigma
Event trace
Timeline
- CSS object-fit and object-position properties: Crop images embedded in HTML 转载
- Setting the width of selects to the width of the selected option 整合
- A new meta tag for respecting text scaling on mobile 整合
- How to Override width and height HTML attributes with CSS 原创
- Fixing Cumulative Layout Shift Problems on DavidWalshBlog 整合
- AutoGrow Textareas with CSS 整合
- Day 38: vh, svh, lvh, and dvh 整合
- Parents counting children in CSS 整合
- Please, stop disabling zoom 整合
- Element diversity 整合
Time Slices
- T0 19 篇 2026-11-18 21:40 Mobile Design is not only Responsive Offer Files as Download with a@download Resize Elements with CSS3 Responsive Media iOS 7, Keyboards, and Height: A Lesson in Confusion Other Browsers, Keyboards, and Height What The Heck, z-index?? Element diversity Please, stop disabling zoom Parents counting children in CSS Day 38: vh, svh, lvh, and dvh AutoGrow Textareas with CSS Fixing Cumulative Layout Shift Problems on DavidWalshBlog How to Override width and height HTML attributes with CSS The Height Enigma A new meta tag for respecting text scaling on mobile Setting the width of selects to the width of the selected option CSS object-fit and object-position properties: Crop images embedded in HTML
- T+2h 19 篇 2026-11-18 23:40 Mobile Design is not only Responsive Offer Files as Download with a@download Resize Elements with CSS3 Responsive Media iOS 7, Keyboards, and Height: A Lesson in Confusion Other Browsers, Keyboards, and Height What The Heck, z-index?? Element diversity Please, stop disabling zoom Parents counting children in CSS Day 38: vh, svh, lvh, and dvh AutoGrow Textareas with CSS Fixing Cumulative Layout Shift Problems on DavidWalshBlog How to Override width and height HTML attributes with CSS The Height Enigma A new meta tag for respecting text scaling on mobile Setting the width of selects to the width of the selected option CSS object-fit and object-position properties: Crop images embedded in HTML
- T+12h 19 篇 2026-11-19 09:40 Mobile Design is not only Responsive Offer Files as Download with a@download Resize Elements with CSS3 Responsive Media iOS 7, Keyboards, and Height: A Lesson in Confusion Other Browsers, Keyboards, and Height What The Heck, z-index?? Element diversity Please, stop disabling zoom Parents counting children in CSS Day 38: vh, svh, lvh, and dvh AutoGrow Textareas with CSS Fixing Cumulative Layout Shift Problems on DavidWalshBlog How to Override width and height HTML attributes with CSS The Height Enigma A new meta tag for respecting text scaling on mobile Setting the width of selects to the width of the selected option CSS object-fit and object-position properties: Crop images embedded in HTML
- T+24h 19 篇 2026-11-19 21:40 Mobile Design is not only Responsive Offer Files as Download with a@download Resize Elements with CSS3 Responsive Media iOS 7, Keyboards, and Height: A Lesson in Confusion Other Browsers, Keyboards, and Height What The Heck, z-index?? Element diversity Please, stop disabling zoom Parents counting children in CSS Day 38: vh, svh, lvh, and dvh AutoGrow Textareas with CSS Fixing Cumulative Layout Shift Problems on DavidWalshBlog How to Override width and height HTML attributes with CSS The Height Enigma A new meta tag for respecting text scaling on mobile Setting the width of selects to the width of the selected option CSS object-fit and object-position properties: Crop images embedded in HTML
Conclusion
该事件汇聚 18 个来源,平均可信度 43%
Confidence: medium
Find Your Interest
- Everyone Hates AI. Half of Them Use It.
- Accessibility foundations
- When to use tabindex='0'
- wsf-xxxviii
- Accessible name computation in Chromium chapter III: name from hidden subtrees
- Accessible name computation in Chromium chapter III: name from hidden subtrees
- wsf-xxxvi
- Designing accessible documents
- Advanced CSS-Only HTML Form Styling
- A Todo List





