Here is an example of a HTML layout and css generated by an LLM in a matter of seconds.
<div class="page">
<div class="header-left"></div>
<div class="header-center"></div>
<div class="header-right"></div>
<div class="margin-left-top"></div>
<div class="margin-left-center"></div>
<div class="margin-left-bottom"></div>
<div class="margin-right-top"></div>
<div class="margin-right-center"></div>
<div class="margin-right-bottom"></div>
<div class="content">
<div class="content-header"></div>
<div class="content-body"></div>
<div class="content-footer"></div>
</div>
<div class="footer-left"></div>
<div class="footer-center"></div>
<div class="footer-right"></div>
</div>
With the following CSS to align etc…
* { box-sizing: border-box; }
body {
margin: 0;
font-family: sans-serif;
}
.page {
display: grid;
grid-template-areas:
"header-left header-center header-right"
"margin-left-top content margin-right-top"
"margin-left-center content margin-right-center"
"margin-left-bottom content margin-right-bottom"
"footer-left footer-center footer-right";
grid-template-columns: 1fr 3fr 1fr;
grid-template-rows: auto auto 1fr auto auto;
min-height: 100vh;
gap: 0.5em;
}
.header-left { grid-area: header-left; background: #eee; padding: 1em; }
.header-center { grid-area: header-center; background: #eee; padding: 1em; }
.header-right { grid-area: header-right; background: #eee; padding: 1em; }
.margin-left-top { grid-area: margin-left-top; background: #f0f0f0; padding: 1em; }
.margin-left-center { grid-area: margin-left-center; background: #f8f8f8; padding: 1em; }
.margin-left-bottom { grid-area: margin-left-bottom; background: #f0f0f0; padding: 1em; }
.margin-right-top { grid-area: margin-right-top; background: #f0f0f0; padding: 1em; }
.margin-right-center { grid-area: margin-right-center; background: #f8f8f8; padding: 1em; }
.margin-right-bottom { grid-area: margin-right-bottom; background: #f0f0f0; padding: 1em; }
.content {
grid-area: content;
background: #fff;
padding: 1em;
display: flex;
flex-direction: column;
gap: 1em;
}
.content-header,
.content-body,
.content-footer {
padding: 1em;
background: #fdfdfd;
border: 1px solid #ccc;
border-radius: 4px;
}
.footer-left { grid-area: footer-left; background: #ddd; padding: 1em; }
.footer-center { grid-area: footer-center; background: #ddd; padding: 1em; }
.footer-right { grid-area: footer-right; background: #ddd; padding: 1em; }
/* 🔻 Responsive Layout for Smaller Screens */
@media (max-width: 768px) {
.page {
grid-template-areas:
"header-center"
"header-left"
"header-right"
"margin-left-top"
"margin-right-top"
"content"
"margin-left-center"
"margin-right-center"
"margin-left-bottom"
"margin-right-bottom"
"footer-center"
"footer-left"
"footer-right";
grid-template-columns: 1fr;
grid-template-rows: auto;
}
.content {
padding: 0.5em;
}
.content-header,
.content-body,
.content-footer {
padding: 0.75em;
}
}
[Edited] This example should also be responsive.