Skip to content

Instantly share code, notes, and snippets.

@chrisgemignani
Created February 15, 2009 23:43
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 chrisgemignani/64907 to your computer and use it in GitHub Desktop.
Save chrisgemignani/64907 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>
<!-- an example of how to do two divs side by side -->
<style type="text/css" media="screen">
.left {
background-color: #ccffff;
margin-right: 50%;
}
.right {
background-color: #ffcccc;
width: 50%;
float: right;
}
</style>
</head>
<body>
<div class="right">
<p>I'm on the right</p>
</div>
<div class="left">
<p>I'm on the left</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment