Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Example 1 -->
- <section>
- <div class = "parent">
- <span>contents</span>
- <span>contents</span>
- </div>
- </section>
- <!-- Example 2 -->
- <section>
- <div class = "parent">
- <span>contents</span>
- <span>contents</span>
- <!-- empty span renders on new line -->
- <span class = "empty"></span>
- </div>
- </section>
- .parent{
- float:right;
- background: #666;
- margin-bottom:10px;
- }
- .parent span {
- font-size: 40px;
- background: pink;
- margin-right: 10px;
- }
- section {
- clear:both;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement