Created
July 18, 2017 04:47
-
-
Save rambhairao/a8e7ef4aebfcb8f926e3b7f799176e50 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/vigufu
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
div#down > p { | |
color: red; | |
} | |
div#down ~ div { | |
color: red; | |
border: 1px solid; | |
} | |
p:nth-child(3){ | |
color:yellow; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="down"> | |
<p>1 </p> | |
<p>10 </p> | |
<p>2 </p> | |
<p>3 </p> | |
<p>4 </p> | |
<ul> | |
<li>1 </li> | |
<li>3 </li> | |
<p> 100 </p> | |
</ul> | |
<p> 100 </p> | |
</div> | |
<div>m </div> | |
<div> r </div> | |
<script id="jsbin-source-css" type="text/css"> | |
div#down > p { | |
color: red; | |
} | |
div#down ~ div { | |
color: red; | |
border: 1px solid; | |
} | |
p:nth-child(3){ | |
color:yellow; | |
}</script> | |
</body> | |
</html> |
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#down > p { | |
color: red; | |
} | |
div#down ~ div { | |
color: red; | |
border: 1px solid; | |
} | |
p:nth-child(3){ | |
color:yellow; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment