Skip to content

Instantly share code, notes, and snippets.

@usualoma
Created December 23, 2015 05:21
Show Gist options
  • Save usualoma/ba78501e9da7d266cd03 to your computer and use it in GitHub Desktop.
Save usualoma/ba78501e9da7d266cd03 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<style type="text/css">
div {
position: absolute;
border: none;
}
div:hover {
background: green !important;
}
#div1 {
top: 0;
left: 0;
width: 140px;
height: 150px;
background: blue;
}
#div2 {
top: 0px;
left: 150px;
width: 140px;
height: 150px;
background: red;
}
</style>
</head>
<body>
<div id="div1">
<div id="div2"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment