Skip to content

Instantly share code, notes, and snippets.

@Opus1no2
Last active March 22, 2019 19:57
Show Gist options
  • Save Opus1no2/b2e416083a1a5d66cd4b27f12cabba29 to your computer and use it in GitHub Desktop.
Save Opus1no2/b2e416083a1a5d66cd4b27f12cabba29 to your computer and use it in GitHub Desktop.
float
<!doctype html>
<html>
<head>
<style>
.container {
margin: 0 auto;
width: 75%;
padding-left: 25px;
padding-right: 25px;
}
.pull-left {
display: inline-block;
}
.pull-left {
width: 25%;
float: left;
}
</style>
</head>
<body>
<div class='container'>
<div class='pull-left'>
I am to the left
</div>
<div class='pull-left'>
I am to the right
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment