W3Schools.com

CSS Reference

CSS Reference
CSS Selectors
CSS Reference Aural
CSS Web Safe Fonts
CSS Units
CSS Colors
CSS Color Values
CSS Color Names
CSS Color HEX
CSS3 Browser Support

CSS Properties

CSS3 border-image-width Property

CSS Reference Complete CSS Reference

Example

Specify the widths of the image-border:

div
{
border-image-source: url(border.png);
border-image-width: 30 30;
}

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The border-image-width property is not supported in any of the major browsers.

Look at the border-image property instead!


Definition and Usage

The border-image-width property specifies the widths of the image-border.

Default value: 1
Inherited: no
Version: CSS3
JavaScript syntax: object.style.borderImageWidth="30 30"


Syntax

border-image-width: number|%|auto;

Note: The four values of border-image-width specify offsets that are used to divide the border image area into nine parts. They represent the inward distances from the the top, right, bottom, and left sides of the area. If the fourth value is omitted, it is the same as the second. If the third one is also omitted, it is the same as the first. If the second one is also omitted, it is the same as the first. Negative values are not allowed for any border-image-width values.

Value Description
number Represents multiples of the corresponding border-width
% Refers to the size of the border image area: the width of the area for horizontal offsets, the height for vertical offsets
auto If specified, the width is the intrinsic width or height of the corresponding image slice


CSS Reference Complete CSS Reference
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE