Skip to content

Commit

Permalink
Add horizontal layout
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed Apr 27, 2023
1 parent 186174e commit 677ce79
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}
.wrapper {
display: table;
table-layout: fixed;
width: 100%;
height: 100%;
}
Expand All @@ -21,6 +22,12 @@
.cell {
display: table-cell;
}
.narrow {
width: 10%;
}
.wide {
width: 60%;
}
.header {
background-color: lightblue;
}
Expand All @@ -35,10 +42,14 @@
<body>
<div class="wrapper">
<div class="row header">
<div class="cell">Header</div>
<div class="cell narrow">Header A</div>
<div class="cell wide">Header B </div>
<div class="cell">Header C</div>
</div>
<div class="row main">
<div class="cell">Main content area</div>
<div class="cell">Main content area A</div>
<div class="cell">Main content area B</div>
<div class="cell">Main content area C</div>
</div>
<div class="row footer">
<div class="cell">Footer</div>
Expand Down

0 comments on commit 677ce79

Please sign in to comment.