html - Nine patch image in css -
i have next style div:
.page { width: 90%; border-color: orange; border-style: double; border-width: 25px 30px 10px 20px; border-image: url("images/border-image.png") 25 30 10 20 repeat; margin: 70px auto 0px auto; padding: 10px; box-shadow: 0px 4px 3px rgba(0,0,0,0.9), 0px 8px 13px rgba(0,0,0,0.6), 0px 18px 23px rgba(0,0,0,0.1);; } i took example. , there right all! me draws frame of image , black background (body has black background). how can draw middle part of images too?
per https://drafts.csswg.org/css-backgrounds/#the-border-image-slice, middle automatically discarded (because it's "border" image) unless specify fill keyword. want:
border-image: url("images/border-image.png") 25 30 10 20 fill repeat;
Comments
Post a Comment