2 Column Liquid Layout, Left Side Menu, Header, No Footer

The 2-column fluid layout with header and left-side menu uses four divs:

  1. #bodywrapper. The sole purpose of this div is to provide the background image (in this case, body_bg.gif) for the #contentarea div. Should the height of the #contentarea div be greater than that of the #leftcolumn (menu) div, then the background will tile accordingly.
  2. #contentarea. This is the div that will contain the content of the page. This div is the first div containing content of any type that will appear in the HTML output.
     
    This will serve the dual purpose of providing search engines with a quick and easy way to determine the content of a page, as well as allowing users to view content as soon as possible.
     
    #contentarea is a fluid div, and will expand to the lesser of the available width of the user’s browser window (the width of the window minus the width of the #leftcolumn div) or to the width of the content itself.

  3. #leftcolumn. This is the menu div. #leftcolumn, like #bodywrapper, contains the background image (body_bg.gif). If the height of the #leftcolumn div should be greater than that of the #contentarea div, then the background image will tile accordingly.
  4. #header. This is the header div. It could be used for a menu, banner advertising, or any other purpose you see fit.
     
    The #header div is absolutely positioned in order to allow for placement at any point in the document.

The CSS

/* This is just here for formatting purposes.  This has nothing to do with the layout. */
@import url(https://searchenginefriendlylayouts.com/wp-content/themes/1cxt1iauxdb3qr75671ky145684/files/css/defaultstyles.css);
body {
/* Always use margin:  0;  padding:  0; as margin controls for your page itself.  Setting both to 0 ensures that your page will spread to the outer edges of the browser window. */
	margin:  0;
	padding:  0;
}
#bodywrapper {
/* replace margin-top value with the height of your header. */
	margin-top:  110px;
	margin-left:  0;
	margin-right:  0;
	margin-bottom:  0;
	padding:  0;
/*  Background of the right side menu.  Replace the URL and the background color (#FFFFFF) with your choices for each.  */
	background:  url(../LayoutImages/body_bg.gif) top left repeat-y #FFFFFF;
	color:  #000000;
	position:  relative;
	top:  0;
	left:  0;
	width:  100%;
}
#contentarea {
 /* replace this value with the width of your left column */
 	margin-left:  200px;
	margin-right:  0;
	margin-bottom:  0;
	margin-top:  0;
	padding:  0;
}
#leftcolumn {
	position:  absolute;
	top:  0;
	left:  0;
	margin:  0;
	padding:  0;
/* Replace width with the width of your left column. */
	width:  200px;
/*  Background of the left side menu.  Replace the URL and the background color (#3F9BCF) with your choices for each.  */
	background:  url(../LayoutImages/body_bg.gif) top left repeat-y #3F9BCF;
	color:  #FFFFFF;
}
#header {
	position:  absolute;
	top:  0;
	left:  0;
	width:  100%;
/* replace this value with the height of your header. */
	height:  110px;
/* background for the header.  Replace the URL and the background color (#F2F2F2) with your choices for each.  */
	background:  url(../LayoutImages/top_bg.gif) top left repeat #F2F2F2;
	color:  #000000;
/* put this in to ensure that your header doesn't overlap the body of your website. */
	overflow:  hidden;
}

The HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Your Title Tag Here</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="Your, keywords, here." />
<meta name="description" content="Your Description Here." />
<link rel="stylesheet" type="text/css" href="/layout_CSS/2_col_left_side_menu_liquid_header_no_footer.css" />
</head>
<body>
<div id="bodywrapper">
	<div id="contentarea">
		<h1>Your Header Here</h1>
		Your body content here.
	</div>
	<div id="leftcolumn">
		Left Side Content
	</div>
</div>
<div id="header">
	Header Content.
</div>
</body>
</html>
Warning:  This Site's Layout Will Change
Powered by ADAM Web Design .
© 2006. All rights reserved. Legal Info