-
-
Save alexeyten/3916471 to your computer and use it in GitHub Desktop.
The difference between inline and block absolutes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The difference between inline and block absolutes */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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