Skip to content

Instantly share code, notes, and snippets.

@bvjebin
Created November 5, 2014 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bvjebin/c57112233c049cb1ac05 to your computer and use it in GitHub Desktop.
Save bvjebin/c57112233c049cb1ac05 to your computer and use it in GitHub Desktop.
Two column - one flexible - one fixed width layout
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<header>
Two column layout with right column taking fixed width and rest to be occupied by the left column
</header>
<div style="display: table;
width: 800px;
margin-top: 40px;
border-collapse: collapse;">
<div style="display: table-cell;
border: 1px solid #a1a1a1;
padding: 5px;">hello</div>
<div style="width: 200px;
display: table-cell;
border: 1px solid #a1a1a1;
padding: 5px;">No hello</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment