forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1 lines (1 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
1 lines (1 loc) · 3.34 KB
1
--- layout: single property_name: background-origin ---<section id="background-origin" class="property"><header class="property-header"><nav class="property-links"><a class="property-links-direct" href="{{site.url}}/property/background-origin/" data-property-name="background-origin" data-tooltip="Single page for this property" target="_blank">Link</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="background-origin">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/background-origin" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="{{site.url}}/#background-origin"><span>#</span>background-origin</a></h2><div class="property-description"><p>Defines the origin of the background image.</p></div></header><style type="text/css">.background-origin { background-image: url(/images/jt.png);background-repeat: no-repeat;background-size: 64px 64px;border: 4px dashed;padding: 2em; }</style><style type="text/css">.background-origin p { background-color: rgba(5, 255, 176, 0.5);padding: 1em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="background-origin: padding-box;">background-origin: padding-box;</code></p><div class="example-description"><p>The background image starts at the <em>edge</em> of the border: within padding but <em>not</em> the border.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div background-origin" id="background-origin-padding-box"><p>Hello world</p></div></div></aside><style type="text/css">#background-origin-padding-box{ background-origin:padding-box;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="background-origin: border-box;">background-origin: border-box;</code></p><div class="example-description"><p>The background image starts <strong>under</strong> the border.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div background-origin" id="background-origin-border-box"><p>Hello world</p></div></div></aside><style type="text/css">#background-origin-border-box{ background-origin:border-box;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="background-origin: content-box;">background-origin: content-box;</code></p><div class="example-description"><p>The background image only starts at the edge of the <em>content</em>: it doesn't include the padding, nor the border.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div background-origin" id="background-origin-content-box"><p>Hello world</p></div></div></aside><style type="text/css">#background-origin-content-box{ background-origin:content-box;}</style></section></section>