Created
December 22, 2011 10:05
-
-
Save yatil/1509786 to your computer and use it in GitHub Desktop.
TD is not TABLEs direct child.
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
/** | |
* TD is not TABLEs direct child. | |
*/ | |
body { | |
background: #bada55; | |
min-height:100%; | |
} | |
table { | |
font-size: 40px; | |
color: #000; | |
border: 1px solid #000; | |
font-family: sans-serif; | |
} | |
table > td { | |
color: #f00; /* Can’t work as the td is NOT the direct child of the table in the DOM. */ | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<table><td>Test</td></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
{"view":"split","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment