mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-13 09:35:59 +02:00
Move header from layout
This commit is contained in:
@@ -9,7 +9,8 @@ const Centering = () => {
|
||||
useDocumentTitle('CSS Layout ∙ Centering');
|
||||
|
||||
return (
|
||||
<DetailsLayout name="Centering">
|
||||
<DetailsLayout>
|
||||
<h1 className="f1 tc">Centering</h1>
|
||||
<BrowserFrame
|
||||
content={
|
||||
<div className="h-100 flex flex-column items-center justify-center">
|
||||
|
@@ -9,7 +9,8 @@ const StickyFooter = () => {
|
||||
useDocumentTitle('CSS Layout ∙ Sticky footer');
|
||||
|
||||
return (
|
||||
<DetailsLayout name="Sticky footer">
|
||||
<DetailsLayout>
|
||||
<h1 className="f1 tc">Sticky footer</h1>
|
||||
<div className="lh-copy mb3">
|
||||
The footer always sticks to the bottom if the main content is short.
|
||||
</div>
|
||||
|
@@ -9,7 +9,8 @@ const StickyHeader = () => {
|
||||
useDocumentTitle('CSS Layout ∙ Sticky header');
|
||||
|
||||
return (
|
||||
<DetailsLayout name="Sticky header">
|
||||
<DetailsLayout>
|
||||
<h1 className="f1 tc">Sticky header</h1>
|
||||
<BrowserFrame
|
||||
content={
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user