-
-
Save SelenIT/85ae2a32080e532bb9584e57be1a4792 to your computer and use it in GitHub Desktop.
tr + positioning
This file contains hidden or 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; | |
} | |
.foo { | |
background: orange; | |
position: absolute; | |
top: 0; | |
left: 0; | |
padding: 20px; | |
} |
This file contains hidden or 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> | |
<td class="foo">foo</td> | |
</tr> | |
</table> |
This file contains hidden or 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 hidden or 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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment