127 lines
5.4 KiB
HTML
127 lines
5.4 KiB
HTML
<!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>
|
|
|
|
<style media="screen">
|
|
#my-table div.td:nth-child(2) { flex: 5; }
|
|
</style>
|
|
|
|
<div class="table" id="my-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>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
|
|
<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>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
const tables = [{
|
|
id: 'my-table',
|
|
sm_md: 450,
|
|
md_lg: 800
|
|
},{
|
|
id: 'other-table',
|
|
sm_md: 450,
|
|
md_lg: 800
|
|
}];
|
|
</script>
|
|
<script src="js/index3.js"></script>
|
|
</body>
|
|
</html>
|