Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #roundedCornerDiv {
- -moz-border-radius: 1em; /* for mozilla-based browsers */
- -webkit-border-radius: 1em; /* for webkit-based browsers */
- border-radius: 1em; /* theoretically for *all* browsers
- dependant on implementation of CSS3 */
- border: 12px solid #ccc;
- }
- div {
- background: white url(topleft.gif) top left no-repeat;
- }
- div span {
- display: block;
- background: url(topright.gif) top right no-repeat;
- }
- div span span {
- background: url(bottomright.gif) bottom right no-repeat;
- }
- div span span span {
- padding: 2em;
- height: 0; /* fixes a padding bug in IE */
- background: url(bottomleft.gif) bottom left no-repeat;
- }
- div span span > span {
- height: auto; /* sets the height back to auto for all other browsers */
- }
- <div><span><span><span>Round corners!</span></span></span></div>
Add Comment
Please, Sign In to add comment