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.68 KB
/
Copy pathindex.html
File metadata and controls
1 lines (1 loc) · 3.68 KB
1
--- layout: single property_name: bottom ---<section id="bottom" class="property"><header class="property-header"><nav class="property-links"><a class="property-links-direct" href="{{site.url}}/property/bottom/" data-property-name="bottom" 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="bottom">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/bottom" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="{{site.url}}/#bottom"><span>#</span>bottom</a></h2><div class="property-description"><p>Defines the position of the element according to its <strong>bottom</strong> edge.</p></div></header><style type="text/css">.bottom { background: #310736;height: 200px;position: relative; }</style><style type="text/css">.bottom p { color: #fff; }.bottom .natural { width: 200px; }.bottom .actual { animation-direction: alternate;animation-duration: 2s;animation-iteration-count: infinite;position: absolute;width: 200px; }</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="bottom: auto;">bottom: auto;</code></p><div class="example-description"><p>The element will remain in its <strong>natural</strong> position.</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 bottom" id="bottom-auto"><p>Parent container</p><div class="natural">Natural position</div><div class="actual">Actual position</div></div></div></aside><style type="text/css">#bottom-auto{ bottom:auto;}</style><style type="text/css">#bottom-auto .actual { animation-name: fadeIn;transform: translateY(-100%); }</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="bottom: 20px;">bottom: 20px;</code></p><div class="example-description"><p>If the element is in position <strong>relative</strong>, the element will move <em>upwards</em> by the amount defined by the <strong>bottom</strong> value.</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 bottom" id="bottom-20px"><p>Parent container</p><div class="natural">Natural position</div><div class="actual">Actual position</div></div></div></aside><style type="text/css">#bottom-20px{ bottom:20px;}</style><style type="text/css">#bottom-20px .actual { animation-name: fadeIn;bottom: 20px;position: relative;transform: translateY(-100%); }</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="bottom: 0;">bottom: 0;</code></p><div class="example-description"><p>If the element is in position <strong>absolute</strong>, the element will position itself from the <em>bottom</em> of the first positioned <strong>ancestor</strong>.</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 bottom" id="bottom-0"><p>Parent container</p><div class="natural">Natural position</div><div class="actual">Actual position</div></div></div></aside><style type="text/css">#bottom-0{ bottom:0;}</style><style type="text/css">#bottom-0 .actual { bottom: 0; }</style></section></section>