Your custom element has 100% height of <body>
, but you need to make <body>
100% height of <html>
.
The problems with your
body {
min-height: 98%;
display: table;
}
are that
min-height
has no effect in tables.- percentage
height
only works if parent has a explicitly specifiedheight
(i.e., it doesn't depend on content height), which is not the case withmin-height
.
Then, you must use
body {
height: 98%;
}
instead of the code above.