Skip to content

Commit

Permalink
calc() width
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Acker committed Jun 30, 2024
1 parent b40a9de commit e5644d9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions html/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,23 @@ body {
}

table {
width: 25%;
/* TODO: set tabs per row from aspect-ratio */
--baseWidth: calc(100% / 4);
width: var(--baseWidth);
float: left;
border: 1px solid #f94;
}

table.narrow {
width: 15%;
width: calc(var(--baseWidth) * 0.6);
}

table.wide {
width: 35%;
width: calc(var(--baseWidth) * 1.4);
}

table.wider {
width: 50%;
}

table {
float: left;
border: 1px solid #f94;
width: calc(var(--baseWidth) * 2);
}

td, th {
Expand Down

0 comments on commit e5644d9

Please sign in to comment.