Guest User

Untitled

a guest
Jun 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #roundedCornerDiv {
  2. -moz-border-radius: 1em; /* for mozilla-based browsers */
  3. -webkit-border-radius: 1em; /* for webkit-based browsers */
  4. border-radius: 1em; /* theoretically for *all* browsers
  5. dependant on implementation of CSS3 */
  6. border: 12px solid #ccc;
  7. }
  8.  
  9. div {
  10. background: white url(topleft.gif) top left no-repeat;
  11. }
  12.  
  13. div span {
  14. display: block;
  15. background: url(topright.gif) top right no-repeat;
  16. }
  17.  
  18. div span span {
  19. background: url(bottomright.gif) bottom right no-repeat;
  20. }
  21.  
  22. div span span span {
  23. padding: 2em;
  24. height: 0; /* fixes a padding bug in IE */
  25. background: url(bottomleft.gif) bottom left no-repeat;
  26. }
  27.  
  28. div span span > span {
  29. height: auto; /* sets the height back to auto for all other browsers */
  30. }
  31.  
  32. <div><span><span><span>Round corners!</span></span></span></div>
Add Comment
Please, Sign In to add comment