Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Flex-Box Tabelle</title>
- <style>
- .container {
- height: 100vh;
- width: 100vw;
- background-color: lightblue;
- }
- .website-content {
- max-width: 800px;
- width: 100%;
- height: 100%;
- margin: 0 auto;
- background-color: white;
- padding: 100px 10px;
- }
- /*
- * Ab hier brauchst du die 3 Styles
- */
- .my-flex-table {
- display: flex;
- display: -webkit-flex;
- flex-wrap: wrap;
- -webkit-flex-wrap: wrap;
- width: 100%;
- }
- .my-flex-cell {
- width: 33.333%;
- border: 1px solid #ddd;
- box-sizing: border-box;
- padding: 5px;
- }
- .my-flex-cell-content img {
- width: 100%!important;
- height: auto!important;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <div class="website-content">
- <h1>Tabelle</h1>
- <!--
- Und ab hier ist die "Tabelle". Inhalte immer in den my-flex-cell-content
- -->
- <div class="my-flex-table">
- <div class="my-flex-cell">
- <div class="my-flex-cell-content">
- <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
- </div>
- </div>
- <div class="my-flex-cell">
- <div class="my-flex-cell-content">
- <p>Lorem ipsum dolor sit amet,Lorem ipsum dolor sit amet consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
- </div>
- </div>
- <div class="my-flex-cell">
- <div class="my-flex-cell-content">
- <p>Lorem ipsum dolor sit amet, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
- </div>
- </div>
- <div class="my-flex-cell">
- <div class="my-flex-cell-content">
- <p>Lorem ipsum dolor eirmod tempor invidunt ut labore e aliquyam</p>
- <p>Lorem ipsum dolor eirmod tempor invidunt ut labore e aliquyam</p>
- </div>
- </div>
- <div class="my-flex-cell">
- <div class="my-flex-cell-content">
- <img src="0266554465.jpeg" alt="bird">
- <p>Lorem ipsum dolor sit amet,Lorem ipsum dolor sit amet consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
- </div>
- </div>
- <div class="my-flex-cell">
- <div class="my-flex-cell-content">
- <p>Lorem ipsum dolor sit amet, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement