Created
November 5, 2014 06:28
-
-
Save bvjebin/c57112233c049cb1ac05 to your computer and use it in GitHub Desktop.
Two column - one flexible - one fixed width layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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