Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style>
- .antraste {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: center;
- align-content: center;
- background-color: #A52A2A;
- height: 70px;
- color: white;
- }
- .poraste {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: center;
- align-content: center;
- background-color: #A52A2A;
- height: 70px;
- color: white;
- }
- .flex-grid {
- display: flex;
- }
- .col {
- background-color: blue;
- height: 200px;
- flex: 1;
- align-items: flex-start;
- align-content: center;
- justify-content: center;
- }
- .col1 {
- background-color: yellow;
- height: 200px;
- flex: 1;
- align-items: flex-start;
- align-content: center;
- justify-content: center;
- }
- .col2 {
- background-color: orange;
- height: 200px;
- flex: 1;
- align-items: flex-start;
- align-content: center;
- }
- .col3 {
- background-color: purple;
- height: 200px;
- flex: 1;
- align-items: flex-start;
- align-content: center;
- }
- .col4 {
- background-color: yellow;
- height: 200px;
- flex: 1;
- align-items: flex-start;
- align-content: center;
- }
- .col5 {
- background-color: orange;
- height: 200px;
- flex: 1;
- align-items: flex-start;
- align-content: center;
- }
- .col6 {
- background-color: purple;
- height: 200px;
- flex: 1;
- align-items: flex-start;
- align-content: center;
- }
- @media (max-width: 400px) {
- .flex-grid {
- display: block;
- }
- }
- .flex-grid-thirds {
- display: flex;
- justify-content: space-between;
- }
- .flex-grid-thirds .col {
- width: 32%;
- }
- .skirtukas {
- display: flex;
- flex-direction: column;
- flex-wrap: nowrap;
- justify-content: center;
- align-items: center;
- align-content: center;
- background-color: #A52A2A;
- height: 100px;
- color: white;
- }
- </style>
- </head>
- <body>
- <div class="antraste">Antraštė
- </div>
- <div class="flex-grid-thirds">
- <div class="col">BOX 1-1</div>
- <div class="col1">BOX 1-2</div>
- <div class="col2">BOX 1-3</div>
- <div class="col3">BOX 1-4</div>
- </div>
- <div class="skirtukas">Skirtukas
- </div>
- <div class="flex-grid-thirds">
- <div class="col4">BOX 2-1</div>
- <div class="col5">BOX 2-2</div>
- <div class="col6">BOX 2-3</div>
- </div>
- <div class="poraste">Poraštė
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement