permalink |
---|
/index.html |
Three-row template for laying out header, main and footer.
The result is the same whether grid
or flexbox
is used (but grid
uses less code).
header
: fits content,main
: takes up the remaining space,footer
: fits content, always sits at the bottom of the page.
grid
/flexbox
used for page layout.100dvh
(with100vh
as fallback) set on.main-layout
for 100% page height.- (Avoids setting 100% height on
html, body
which can cause problems on mobile.)
- (Avoids setting 100% height on
A bug causing an accessible table with a scrolling container to fail when using the grid
page layout has been fixed,
and the result placed and documented on the accompanying Git Pages website. See Page Layout (Grid) with Scrollable Table
- Tested on:
- Windows 10
- Chrome
- Firefox
- Microsoft Edge
- Windows 10