Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- <p>I'm a paragraph and I'm on the left!!!</p>
- <h3>I'm a header and I'm on the right</h3>
- </div>
- div p{
- float: left;
- width:30%;
- border: 1px solid blue;
- }
- div h3{
- clear: both;
- float:left;
- width:10%;
- border: 1px solid red;
- }
- .clear:after {
- clear: both;
- content: "";
- display: table;
- }
- <div class="clear">
- <p>I'm a paragraph and I'm on the left!!!</p>
- <h3>I'm a header and I'm on the right</h3>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement