Skip to content

Instantly share code, notes, and snippets.

@mguentner
Created January 30, 2018 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mguentner/c975c0d1aa12b1c6a846d615fb292484 to your computer and use it in GitHub Desktop.
Save mguentner/c975c0d1aa12b1c6a846d615fb292484 to your computer and use it in GitHub Desktop.
absolute div under <html>
<html>
<title>Absolute answers are hard.</title>
<style>
#main {
background-color: #00ff00;
height: 200px;
}
#absolute {
position: absolute;
top: 220px;
height: 100px;
width: 100px;
background-color: #ff0000;
}
</style>
<body>
<div id="absolute"></div>
<div id="main"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment