Forum Moderators: open
<!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=ISO-8859-1">
<title>Untitled</title>
<style type="text/css">
#img-container {
width: 1100px;
margin: 12px auto;
padding:0;
height: 491px; /* img is 489 */
border-top: 1px solid #000;
border-bottom: 1px solid #000;
}
</style>
</head>
<body>
<p id="img-container">
<img src="coverphoto.jpg" alt="Cover Photo - alt is still a required attribute">
</p>
</body>
</html>
<!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=ISO-8859-1">
<title>Untitled</title>
<style type="text/css">
#content-left,#img-container,#sidebar,#logo { float: left; }
#outer-container {
border: 1px solid #000;
width: 1280px;
margin:auto;
overflow:hidden;
}
#header,#img-container,#content-left {
width: 1100px;
}
#header, { height: 100px; }
#logo {
width: 150px;
height: 80px;
margin: 20px 0 0 24px;
}
#header-right {
float: right;
width: 150px;
margin: 20px 24px 0 0;
}
#sidebar {
width: 179px; /* + border = 180 */
border-left: 1px solid #000;
}
#img-container {
width: 1100px;
margin: 0;
padding:0;
height: 491px; /* img is 489 */
border-top: 1px solid #000;
border-bottom: 1px solid #000;
}
#sidebar ul, #sidebar ul li {
margin:0;
padding:0;
}
#sidebar ul li { display: block; }
#sidebar ul li a, #sidebar p {
padding: 18px;
width:144px;
margin:0;
display: block;
}
#sidebar p {
height: 64px;
margin:0;
background: #b0b0b0;
}
#sidebar ul li a {
height: 88px;
background: #f4f4f4;
/* when adding bg images, remove this
and add text-indent: -50000px */
text-align: center;
}
#sidebar ul li a:hover { background: #c0c0c0; }
</style>
</head>
<body>
<div id="outer-container">
<div id="content-left">
<div id="header">
<p id="logo">Logo here</p>
<p id="header-right">This
is the text at the top right
</p>
</div> <!-- header -->
<p id="img-container">
<img src="coverphoto.jpg" alt="Cover Photo - alt is still a required attribute">
</p>
</div> <!-- content left -->
<div id="sidebar">
<p>
This is your top right text
block.
</p>
<ul>
<li><a href="#">First link</a></li>
<li><a href="#">Second link</a></li>
<li><a href="#">third</a></li>
<li><a href="#">fourth</a></li>
</ul>
</div> <!-- sidebar -->
</div> <!-- outer container -->
</body>
</html>