Created
January 30, 2018 16:05
-
-
Save mguentner/c975c0d1aa12b1c6a846d615fb292484 to your computer and use it in GitHub Desktop.
absolute div under <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
<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