border-image-outset
Quick Summary for border-image-outset
The border-image-outset CSS property sets the distance by which an element's border image is set out from its border box.
Code Usage for border-image-outset

<pre class="brush: css notranslate"><code><span class="token comment">/ &lt;length&gt; value /</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> 1rem<span class="token punctuation">;</span> <span class="token comment">/ &lt;number&gt; value /</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> 1.5<span class="token punctuation">;</span> <span class="token comment">/ vertical | horizontal /</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> 1 1.2<span class="token punctuation">;</span> <span class="token comment">/ top | horizontal | bottom /</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> 30px 2 45px<span class="token punctuation">;</span> <span class="token comment">/ top | right | bottom | left /</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> 7px 12px 14px 5px<span class="token punctuation">;</span> <span class="token comment">/ Global values /</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> inherit<span class="token punctuation">;</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> initial<span class="token punctuation">;</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> revert<span class="token punctuation">;</span> <span class="token property">border-image-outset</span><span class="token punctuation">:</span> unset<span class="token punctuation">;</span> </code></pre>

More Details for border-image-outset

border-image-outset

The border-image-outset CSS property sets the distance by which an element's border image is set out from its border box.

The parts of the border image that are rendered outside the element's border box with border-image-outset do not trigger overflow scrollbars and don't capture mouse events.

Syntax

/* <length> value */ border-image-outset: 1rem;  /* <number> value */ border-image-outset: 1.5;  /* vertical | horizontal */ border-image-outset: 1 1.2;  /* top | horizontal | bottom */ border-image-outset: 30px 2 45px;  /* top | right | bottom | left */ border-image-outset: 7px 12px 14px 5px;  /* Global values */ border-image-outset: inherit; border-image-outset: initial; border-image-outset: revert; border-image-outset: unset; 

The border-image-outset property may be specified as one, two, three, or four values. Each value is a <length> or <number>. Negative values are invalid and will cause the border-image-outset declaration to be ignored.

If one value is specified, it applies to all four sides. If two values are specified, the first applies to the top and bottom and the second to the left and right. If three values are specified, the first applies to the top, the second to the left and right, and the third to the bottom. If four values are specified, they apply to the top, right, bottom, and left in that order (clockwise).

Values

<length>

The size of the border-image outset as a dimension — a number with a unit.

<number>

The size of the border-image outset as a multiple of the element's corresponding border-widths. For example, if an element has border-width: 1em 2px 0 1.5rem, and border-image-outset: 2, the final border-image-outset would be calculated as 2em 4px 0 3rem.

Formal definition

Initial value0
Applies toall elements, except internal table elements when border-collapse is collapse. It also applies to ::first-letter.
Inheritedno
Computed valueas specified, but with relative lengths converted into absolute lengths
Animation typeby computed value type

Formal syntax

[ <length> | <number> ]{1,4}

Examples

Outsetting a border image

HTML
<div id="outset">This element has an outset border image!</div> 
CSS
#outset {   width: 10rem;   background: #cef;   border: 1.4rem solid;   border-image: radial-gradient(#ff2, #55f) 40;   border-image-outset: 1.5;  /* 1.5 × 1.4rem = 2.1rem */   margin: 2.1rem; } 
Result

Specifications

Specification
CSS Backgrounds and Borders Module Level 4 # the-border-image-outset

See also

Backgrounds and borders Learn CSS: Backgrounds and borders

Last modified: Feb 2, 2022, by MDN contributors

Select your preferred language English (US)DeutschEspañolFrançais日本語한국어Русский中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Don't look to be the next Facebook, try to solve a real problem instead.
Unknown
Latest News
## 🚀 AI Giants Hit Bullseye: Anthropic & OpenAI Achieve Product-Market Fit Anthropic and OpenAI have reached a significant milestone, finding product-market fit with their AI technologies, which means their products effectively meet the needs of their customers, driving growth and adoption. This achievement showcases the practical value of their innovations, enabling businesses and individuals to leverage AI for enhanced productivity and efficiency. With this alignment of product and market needs, these companies are poised to transform industries and shape the future of technology.