Skip to content

Instantly share code, notes, and snippets.

@airtonGit
Created September 22, 2014 11:44
Show Gist options
  • Save airtonGit/c9ba7a3793df4dfc1b3d to your computer and use it in GitHub Desktop.
Save airtonGit/c9ba7a3793df4dfc1b3d to your computer and use it in GitHub Desktop.
<!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>
.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