Skip to content

Instantly share code, notes, and snippets.

@lenadroid
Last active August 29, 2015 14:02
Show Gist options
  • Save lenadroid/c6f4e1c6088fc159f21a to your computer and use it in GitHub Desktop.
Save lenadroid/c6f4e1c6088fc159f21a to your computer and use it in GitHub Desktop.
Positioning for Heather
<!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