Last active
August 29, 2015 14:02
-
-
Save lenadroid/c6f4e1c6088fc159f21a to your computer and use it in GitHub Desktop.
Positioning for Heather
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> | |
<title>Hello World</title> | |
</head> | |
<body> | |
<div id="parent"> | |
<canvas id="div1"> | |
</canvas> | |
<div id="div2"> | |
</div> | |
</div> | |
<style type="text/css"> | |
#div1 { | |
width: 100px; | |
height: 100px; | |
background-color: pink; | |
z-index: 99; | |
border: 3px solid pink; | |
} | |
#div2 { | |
background-color: #333333; | |
width: 10px; | |
height: 10px; | |
z-index: 100; | |
position: absolute; | |
top:0; | |
left: 0; | |
} | |
#parent { | |
position: relative; | |
} | |
</style> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment