Skip to content

Instantly share code, notes, and snippets.

@ducalpha
Created February 21, 2016 07:23
Show Gist options
  • Select an option

  • Save ducalpha/217f11302b14a34e9322 to your computer and use it in GitHub Desktop.

Select an option

Save ducalpha/217f11302b14a34e9322 to your computer and use it in GitHub Desktop.
test css position
<!DOCTYPE html>
<head>
<style>
#container{
border: 1px solid black;
margin: 40px auto;
width: 200px;
}
#div1 {
border: 1px solid black;
background: orange;
}
#div2 {
border: 1px solid black;
background: blue;
}
#div3 {
border: 1px solid black;
background: green;
margin: 10px 20px 30px;
position: absolute;
}
</style>
</head>
<html>
<body>
<div id="container">
<div id="div1">text text text text text text text text text text text text</div>
<div id="div3">text text text text text text text text text text text text</div>
<div id="div2">text text text text text text text text text text text text</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment