Created
September 22, 2014 11:44
-
-
Save airtonGit/c9ba7a3793df4dfc1b3d to your computer and use it in GitHub Desktop.
// source http://jsbin.com/naxesuxeceju/16
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.container{ | |
position: absolute; | |
display: inline-block; | |
background-color: green; | |
width: 300px; | |
height: 30px; | |
margin-left: 10px; | |
} | |
.item1{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 5px; | |
background-color: blue; | |
} | |
.item2{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 55px; | |
background-color: red; | |
margin-left: 10px; | |
} | |
.item3{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 115px; | |
background-color: yellow; | |
margin-left: 10px; | |
} | |
.item4{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 175px; | |
background-color: pink; | |
margin-left: 10px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class='container'> | |
<div class='item1'> | |
um | |
</div> | |
<div class='item2'> | |
dois | |
</div> | |
<div class='item3'> | |
tres | |
</div> | |
<div class='item4'> | |
tres | |
</div> | |
</div> | |
<script id="jsbin-source-css" type="text/css">.container{ | |
position: absolute; | |
display: inline-block; | |
background-color: green; | |
width: 300px; | |
height: 30px; | |
margin-left: 10px; | |
} | |
.item1{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 5px; | |
background-color: blue; | |
} | |
.item2{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 55px; | |
background-color: red; | |
margin-left: 10px; | |
} | |
.item3{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 115px; | |
background-color: yellow; | |
margin-left: 10px; | |
} | |
.item4{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 175px; | |
background-color: pink; | |
margin-left: 10px; | |
}</script> | |
</body> | |
</html> |
This file contains hidden or 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
.container{ | |
position: absolute; | |
display: inline-block; | |
background-color: green; | |
width: 300px; | |
height: 30px; | |
margin-left: 10px; | |
} | |
.item1{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 5px; | |
background-color: blue; | |
} | |
.item2{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 55px; | |
background-color: red; | |
margin-left: 10px; | |
} | |
.item3{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 115px; | |
background-color: yellow; | |
margin-left: 10px; | |
} | |
.item4{ | |
display: inline-block; | |
position: absolute; | |
width: 50px; | |
height: 30px; | |
left: 175px; | |
background-color: pink; | |
margin-left: 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment