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, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="stylesheet" href="css/style.css">
- <title>Float & Align</title>
- </head>
- <body>
- <div class="container">
- <div id="box-1" class="box">
- <h3>Box One</h3>
- <p>Magister de noster abaculus, tractare quadra!<br>
- The karma needs heaven which is not apostolic.<br>
- Become and you will be hurted extraordinarilly.<br>
- To some, a power is a vision for synthesising.</p>
- </div>
- <div id="box-2" class="box">
- <h3>Box Two</h3>
- <p>Magister de noster abaculus, tractare quadra!<br>
- The karma needs heaven which is not apostolic.<br>
- Become and you will be hurted extraordinarilly.<br>
- To some, a power is a vision for synthesising.</p>
- </div>
- <div id="box-3" class="box">
- <h3>Box Three</h3>
- <p>Magister de noster abaculus, tractare quadra!<br>
- The karma needs heaven which is not apostolic.<br>
- Become and you will be hurted extraordinarilly.<br>
- To some, a power is a vision for synthesising.</p>
- </div>
- <div class="clr"></div>
- <div id="box-4" class="box">
- <h3>Box Four</h3>
- <p>Magister de noster abaculus, tractare quadra!<br>
- The karma needs heaven which is not apostolic.<br>
- Become and you will be hurted extraordinarilly.<br>
- To some, a power is a vision for synthesising.</p>
- </div>
- </div>
- </body>
- *{
- box-sizing: border-box;
- }
- .container
- {
- max-width: 500px;
- text-align: center;
- text-align: justify;
- margin: 30px auto;
- }
- .clr
- {
- clear: both;
- }
- body
- {
- font-family: Arial, sans-serif;
- line-height: 1.4em;
- }
- .box
- {
- background: moccasin;
- border: 1px solid darkgray;
- padding: 20px;
- margin-bottom: 15px;
- }
- .box p
- {
- /* Text Align */
- }
- #box-2
- {
- float:left;
- width: 50%;
- }
- #box-3
- {
- float:right;
- width: 50%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement