responsive-table-fluxbox/index3.html

119 lines
5.3 KiB
HTML
Raw Normal View History

2021-05-17 07:26:09 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/styles3.css">
<title>Flexbox test 3</title>
</head>
<body>
<h1>Flexbox test 3</h1>
2021-05-17 07:37:25 +00:00
<style media="screen">
#my-table div.td:nth-child(2) { flex: 5; }
</style>
2021-05-17 07:26:09 +00:00
<div class="table" id="my-table">
2021-05-20 20:10:03 +00:00
<div class="thead">
<div class="tr">
<div class="td th" scope="col">ID</div>
<div class="td th" scope="col">Column 1</div>
<div class="td th" scope="col">Column 2</div>
<div class="td th" scope="col">Column 3</div>
<div class="td th" scope="col">Action</div>
</div>
2021-05-17 07:26:09 +00:00
</div>
2021-05-20 20:10:03 +00:00
<div class="tbody">
<div class="tr">
<div class="td" scope="row">1</div>
<div class="td">Content Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Content Posuere morbi leo urna molestie.</div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">2</div>
<div class="td">Content Posuere morbi leo urna molestie.</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">3</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Content Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">Leo urna molestie.</div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">4</div>
<div class="td">Content Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">Content morbi leo urna molestie. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Content Posuere </div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">5</div>
<div class="td">Content Posuere morbi leo urna molestie.</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">6</div>
<div class="td">Content Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Content Posuere morbi leo urna molestie.</div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">7</div>
<div class="td">Content Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">Content morbi leo urna molestie. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Content Posuere </div>
<div class="td">show | edit</div>
</div>
2021-05-17 07:26:09 +00:00
</div>
</div>
2021-05-20 20:10:03 +00:00
<div class="table" id="other-table">
<div class="thead">
<div class="tr">
<div class="td th" scope="col">ID</div>
<div class="td th" scope="col">Column 1</div>
<div class="td th" scope="col">Column 2</div>
<div class="td th" scope="col">Column 3</div>
<div class="td th" scope="col">Action</div>
</div>
2021-05-17 07:26:09 +00:00
</div>
2021-05-20 20:10:03 +00:00
<div class="tbody">
<div class="tr">
<div class="td" scope="row">1</div>
<div class="td">Content Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Content Posuere morbi leo urna molestie.</div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">2</div>
<div class="td">Content Posuere morbi leo urna molestie.</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">show | edit</div>
</div>
<div class="tr">
<div class="td" scope="row">3</div>
<div class="td">Content sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="td">Content Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="td">Leo urna molestie.</div>
<div class="td">show | edit</div>
</div>
2021-05-17 07:26:09 +00:00
</div>
2021-05-20 20:10:03 +00:00
</div>
2021-05-17 07:26:09 +00:00
<script type="text/javascript">
2021-05-20 20:10:03 +00:00
const tables = [{id: '#my-table'}, {id: '#other-table'}];
2021-05-17 07:26:09 +00:00
</script>
<script src="js/index3.js"></script>
</body>
</html>