Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- .example {
- padding: 16px;
- border: 4px solid red;
- }
- .clearfix:after {
- content: "";
- display: block;
- clear: both;
- }
- .example .box {
- border: 2px solid blue;
- }
- .example .left {
- float: left;
- width: 250px;
- height: 60px;
- }
- .example .right {
- float: right;
- width: 400px;
- height: 80px;
- }
- </style>
- <div class="example clearfix">
- <div class="box left">float: left;</div>
- <div class="box right">float: right;</div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement