Skip to content

Instantly share code, notes, and snippets.

@alexeyten
Forked from kizu/dabblet.css
Created October 19, 2012 06:09
Show Gist options
  • Save alexeyten/3916471 to your computer and use it in GitHub Desktop.
Save alexeyten/3916471 to your computer and use it in GitHub Desktop.
The difference between inline and block absolutes
/* The difference between inline and block absolutes */
<div>
<span>Inline element</span>
<span style="position: absolute;">Absolute inline element</span>
</div>
<br/>
<div>
<span>Inline element</span>
<div style="position: absolute;">Absolute block element</div>
</div>
<br/>
<div>
<div>Block element</div>
<span style="position: absolute;">Absolute inline element</span>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment