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</title>
- <style>
- .container>div {
- background-color: #fff;
- margin: 10px;
- padding: 20px;
- font-size: 30px;
- }
- .container {
- display: flex;
- flex-direction: row-reverse;
- /* flex-direction: column-reverse; */
- flex-wrap: wrap-reverse;
- /* flex-wrap: nowrap; */
- justify-content: center;
- height: 300px;
- align-items: center;
- background-color: rgb(11, 170, 143);
- }
- </style>
- </head>
- <body>
- <div class="container">
- <div style="flex-grow: 6;">1</div>
- <div>2</div>
- <div>3</div>
- <div>4</div>
- <div>5</div>
- <div>6</div>
- <div>7</div>
- <div>8</div>
- <div>9</div>
- <div>10</div>
- <div>11</div>
- <div>12</div>
- <div>13</div>
- <div>14</div>
- <div>15</div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement