Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- div.bagian-luar {
- display: flex;
- flex-wrap: nowrap;
- background-color: DodgerBlue;
- flex-direction: row;
- }
- div.bagian-luar > div.kiri {
- width: 300px;
- background-color: green;
- text-align: center;
- line-height: 75px;
- font-size: 30px;
- }
- div.bagian-luar > div.tengah {
- width: 400px;
- background-color: red;
- text-align: center;
- line-height: 75px;
- font-size: 30px;
- }
- div.bagian-luar > div.kanan {
- width: 300px;
- background-color: blue;
- text-align: center;
- line-height: 75px;
- font-size: 30px;
- }
- </style>
- </head>
- <body>
- <h1>Flexible Boxes</h1>
- <div class="bagian-luar">
- <div class="kiri">1</div>
- <div class="tengah">2</div>
- <div class="kanan">3</div>
- </div>
- <p>Try to resize the browser window.</p>
- <p>A container with "flex-wrap: nowrap;" will never wrap its items.</p>
- <p><strong>Note:</strong> Flexbox is not supported in Internet Explorer 10 or earlier versions.</p>
- </body>
- </html>
Add Comment
Please, Sign In to add comment