Created
October 23, 2017 10:06
-
-
Save LeaVerou/4c9499df3f578b75a5a777e058e48adf to your computer and use it in GitHub Desktop.
tr + positioning
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
/** | |
* tr + positioning | |
*/ | |
tr { | |
position: relative; | |
outline: 1px solid black; | |
} | |
table { | |
width: 100%; | |
padding: 100px; | |
} | |
div { | |
background: orange; | |
position: absolute; | |
top: 0; | |
left: 0; | |
padding: 20px; | |
} |
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
<table> | |
<tr> | |
<td>bar</td> | |
<div>foo</div> | |
</tr> | |
</table> |
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
foo.style.color = "blue"; | |
console.log(foo.getAttribute("style")); |
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":"110","seethrough":"","prefixfree":"","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment