106 lines
4.1 KiB
HTML
106 lines
4.1 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="tr header">
|
|
<div class="td">ID</div>
|
|
<div class="td">Column 1</div>
|
|
<div class="td">Column 2</div>
|
|
<div class="td">Column 3</div>
|
|
<div class="td">Action</div>
|
|
</div>
|
|
<div class="tr">
|
|
<div class="td">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">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">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">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">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">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">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>
|
|
|
|
<!-- ajouter une autre
|
|
div class="table" id="other-table">
|
|
<div class="tr header">
|
|
<div class="td">ID</div>
|
|
<div class="td">Column 1</div>
|
|
<div class="td">Column 2</div>
|
|
<div class="td">Column 3</div>
|
|
<div class="td">Action</div>
|
|
</div>
|
|
</div>
|
|
<div class="tr">
|
|
<div class="td">6</div>
|
|
<div class="td">Content</div>
|
|
<div class="td">Content</div>
|
|
<div class="td">Content</div>
|
|
<div class="td">show | edit</div>
|
|
</div>
|
|
<div class="tr">
|
|
<div class="td">7</div>
|
|
<div class="td">Content</div>
|
|
<div class="td">Content</div>
|
|
<div class="td">Content</div>
|
|
<div class="td">show | edit</div>
|
|
</div>
|
|
</div-->
|
|
|
|
<script type="text/javascript">
|
|
const table = document.querySelector("#my-table");
|
|
</script>
|
|
<script src="js/index3.js"></script>
|
|
</body>
|
|
</html>
|