You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When the height and width of the image are% instead of vh, the image cannot be centered vertically #178
Thanks for your patience, I have had very little bandwidth for ReadiumCSS in the last couple of weeks due to the massive work to be done in Thorium Web so I’m catching up on issues just now.
I will take a deeper look into the file this week but it sounds like the typical web issue making something 100% of the browser’s height – and the fix is having html and body have height: 100% as well. That is consistent with 100vh working as expected.
ReadiumCSS does not apply height: 100% to body because we can’t (otherwise this is a problem for scroll layout). Related issue: #158
Thanks for your patience, I have had very little bandwidth for ReadiumCSS in the last couple of weeks due to the massive work to be done in Thorium Web so I’m catching up on issues just now.
I will take a deeper look into the file this week but it sounds like the typical web issue making something 100% of the browser’s height – and the fix is having html and body have height: 100% as well. That is consistent with 100vh working as expected.
ReadiumCSS does not apply height: 100% to body because we can’t (otherwise this is a problem for scroll layout). Related issue: #158
Activity
JayPanoz commentedon May 12, 2025
Thanks for your patience, I have had very little bandwidth for ReadiumCSS in the last couple of weeks due to the massive work to be done in Thorium Web so I’m catching up on issues just now.
I will take a deeper look into the file this week but it sounds like the typical web issue making something
100%of the browser’s height – and the fix is havinghtmlandbodyhaveheight: 100%as well. That is consistent with100vhworking as expected.ReadiumCSS does not apply
height: 100%tobodybecause we can’t (otherwise this is a problem for scroll layout). Related issue: #158Qing-Novel commentedon May 12, 2025
Okay, if possible, I hope the issue can be fixed.