Skip to content

Instantly share code, notes, and snippets.

@dannomatic
Created March 21, 2019 21:33
Show Gist options
  • Save dannomatic/c5d762e22d31ebce9bfd5ef35f985453 to your computer and use it in GitHub Desktop.
Save dannomatic/c5d762e22d31ebce9bfd5ef35f985453 to your computer and use it in GitHub Desktop.
Simple 2 Column Example
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Simple 2 Columns</title>
</head>
<style>
.column {
float: left;
width: 10%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
</style>
<body>
<div class="row">
<div class="column">Column 1</div>
<div class="column">Column 2</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment