Skip to content

Instantly share code, notes, and snippets.

@thiagoh
Created March 13, 2017 03:05
Show Gist options
  • Save thiagoh/da71e280df6300081da6995235dd72e8 to your computer and use it in GitHub Desktop.
Save thiagoh/da71e280df6300081da6995235dd72e8 to your computer and use it in GitHub Desktop.
floating left experiments
<!doctype html>
<html>
<head>
<style type="text/css">
div {
padding: 10px;
border: 1px solid black;
margin: 0px;
float: left;
}
#box1 {
width: 66px;
height: 400px;
}
#box2 {
width: 80px;
height: 300px;
}
#box3 {
width: 150px;
height: 100px;
}
#box4 {
width: 20px;
height: 250px;
}
#box5 {
width: 120px;
height: 20px;
}
#box6 {
width: 40px;
height: 30px;
}
#box7 {
width: 270px;
height: 60px;
}
#box8 {
width: 60px;
height: 80px;
}
</style>
</head>
<body>
<div id="box1">Box 1</div>
<div id="box2">Box 2</div>
<div id="box3">Box 3</div>
<div id="box4">Box 4</div>
<div id="box5">Box 5</div>
<div id="box6">Box 6</div>
<div id="box7">Box 7</div>
<div id="box8">Box 8</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment