Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- <!--White-space -->
- <span>Some text here<span>
- </div>
- div {
- background: red;
- }
- span {
- background: blue;
- color: #fff;
- }
- div {
- background: red;
- font: 0/0 a;/*make text invisible for parent container with white-spaces*/
- }
- span {
- background: blue;
- color: #fff;
- ont: 12px/normal Arial, sans-serif;/*set back font for child container*/
- display:inline-block;/*just for good render effect*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement