| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>CSS Border Image: border-image-repeat: space</title> | |
| <link rel="author" title="Ethan Lin" href="mailto:ethlin@mozilla.com"> | |
| <link rel="author" title="Mozilla" href="https://www.mozilla.org"> | |
| <style type="text/css"> | |
| .outer { | |
| width: 114px; | |
| height: 114px; | |
| } | |
| .inner1 { | |
| position: absolute; | |
| top: 0px; | |
| left: 0px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| } | |
| .inner2_1 { | |
| position: absolute; | |
| top: 0px; | |
| left: 29px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: -27px 0px; | |
| } | |
| .inner2_2 { | |
| position: absolute; | |
| top: 0px; | |
| left: 58px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: -27px 0px; | |
| } | |
| .inner3 { | |
| position: absolute; | |
| top: 0px; | |
| left: 87px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| } | |
| .inner4_1 { | |
| position: absolute; | |
| top: 29px; | |
| left: 0px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: 0px -27px; | |
| } | |
| .inner4_2 { | |
| position: absolute; | |
| top: 58px; | |
| left: 0px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: 0px -27px; | |
| } | |
| .inner5_1 { | |
| position: absolute; | |
| top: 29px; | |
| left: 87px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: -54px -27px; | |
| } | |
| .inner5_2 { | |
| position: absolute; | |
| top: 58px; | |
| left: 87px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: -54px -27px; | |
| } | |
| .inner6 { | |
| position: absolute; | |
| top: 87px; | |
| left: 0px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| } | |
| .inner7_1 { | |
| position: absolute; | |
| top: 87px; | |
| left: 29px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: -27px -54px; | |
| } | |
| .inner7_2 { | |
| position: absolute; | |
| top: 87px; | |
| left: 58px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| background-position: -27px -54px; | |
| } | |
| .inner8 { | |
| position: absolute; | |
| top: 87px; | |
| left: 87px; | |
| width: 27px; | |
| height: 27px; | |
| background-image: url("support/border.png"); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="outer"> | |
| <div class="inner1"></div> | |
| <div class="inner2_1"></div> | |
| <div class="inner2_2"></div> | |
| <div class="inner3"></div> | |
| <div class="inner4_1"></div> | |
| <div class="inner4_2"></div> | |
| <div class="inner5_1"></div> | |
| <div class="inner5_2"></div> | |
| <div class="inner6"></div> | |
| <div class="inner7_1"></div> | |
| <div class="inner7_2"></div> | |
| <div class="inner8"></div> | |
| </div> | |
| </body> | |
| </html> | |