Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- .container {
- margin: auto;
- width: 200px;
- height: 200px;
- }
- .block {
- width: 100px;
- height: 100px;
- float: left;
- }
- .red { background-color: red; }
- .blue { background-color: blue; }
- .yellow { background-color: yellow; }
- .black { background-color: black; }
- </style>
- </head>
- <body>
- <div class="container">
- <div class="block red"></div><div class="block blue"></div>
- <div style="clear:both;"></div>
- <div class="block yellow"></div><div class="block black"></div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement