]> git.ardis.lu - ardislu.dev/commitdiff
Use 100dvh instead of 100% trick
authorArdis Lu <ardisglu@gmail.com>
Tue, 13 Dec 2022 04:54:54 +0000 (20:54 -0800)
committerArdis Lu <ardisglu@gmail.com>
Tue, 13 Dec 2022 04:54:54 +0000 (20:54 -0800)
dvh is now supported on all modern browsers. The dvh unit makes intent clearer and subtle bugs with grid are fixed by using dvh

style.css

index 876b329ff9a7e0f486d461773871deb0a4c2abd7..4ebc3d4adc2527c202135e5e830e5be444c3af8d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1,8 +1,5 @@
-html, body {
-  min-block-size: 100%;
-}
-
 body {
+  min-block-size: 100dvh;
   font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
     "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Helvetica, Arial,
     sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
This page took 0.039143 seconds and 4 git commands to generate.