I opted for floats, too, until you sought vertically centered content within two columns of one row (as shown in the client's picture). That requirement prompted, this all-too-conventional layout suggestion.
Followed the same pattern in part of the footer with the expectation that it won't fly, as the footer content is not yet finalized. Simplicity, symmetry and centering are strong suits of table-cells. The low/no math feature is a plus.
Colorful outlines on this page are for layout testing and structural clarity. All are commented in css; some are "commented out" at the moment.
There is a styled <hr> tag on this page just to demonstrate that it can be done easily and occupies all of 4 characters on a line of html. The <div class=""></div> methods looks better IMHO, though. "Semantics" seems like an inappropriate argument in this case.
This is a "boxy" approach that I often use because it is stable and incredibly easy to add another line of content (cut-n-paste-n-change-the-text-n-pic); no math.
The original images plus the two that I added are required. All css is on the demo page. (It's been whacked, too.)
Code:
<!DOCTYPE html>
<html>
<!--
http://www.sitepoint.com/forums/showthread.php?894803-Need-advice-on-layout
Oct 12, 2012 22:29
cgacfox
-->
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="css/wings2a-.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
body {
background-color:#d7aeff;
color:#000;
font:100%/1.4 Verdana, Arial, Helvetica, sans-serif;
margin:0;
padding:0;
}
h1, h2, h3, h4, h5, h6, p {
margin:0;
}
.outer {
width:1143px;
margin:0 auto;
}
header {
background-color:#d7aeff;
background-image:url(images/header.png);
background-repeat:no-repeat;
height:218px;
}
h1 {
font-size:20px;
text-indent:-9999px;
}
h2 {
padding:12px 0px 0px 60px;
}
.nav_container {
background-image:url(images/nav2.png);
background-repeat:no-repeat;
height:91px;
overflow:hidden;
}
.nav_container ul {
padding:12px 0px 0px 30px;
margin:0px;
}
.nav_container li {
display:inline;
font-size:24px;
font-family:Calibri, arial, helvetica;
text-align:center;
padding:0px;
margin:0px;
}
.nav_container a {
color:#fff;
text-decoration:none;
float:left;
padding:0px 25px 0px 25px;
}
.nav_container a:hover {
color:#d7aeff;
}
.content_container {
background-image:url(images/content_mdl.png);
background-repeat:repeat-y;
}
.content_container .row {
outline:1px solid magenta; /* LAYOUT TESTING */
display:table;
margin-left:60px;
margin-right:50px;
}
.content_container .row div { /* div could be classed as "col1" */
outline:1px solid magenta; /* LAYOUT TESTING */
display:table-cell;
text-align:left;
vertical-align:middle;
padding-right:50px;
}
.content_container .row div + div { /* div could be classed as "col2" */
text-align:center;
padding-right:0px;
}
img {
display:block;
}
hr { /* not used. Included just to show that an hr tag can be styled */
width:610px;
margin:20px 0px 20px 50px;
}
.hline {
border:1px solid #bbb;
background-color:#000;
width:610px;
height:1px;
margin-top:20px;
margin-bottom:20px;
margin-left:50px;
}
.donate_link {
background-image:url(images/donate_button.png);
background-repeat:no-repeat;
text-indent:-9999px;
width:263px;
height:86px;
margin-left:175px;
margin-top:40px;
padding-bottom:35px;
}
p {
margin:.75em 0px;
}
.behope {
width:610px;
padding:20px 0px 0px 60px;
}
.footer_container {
background-image:url(images/footer2.png);
background-repeat:no-repeat;
height:402px;
overflow-:hidden;
}
.footer_container .row {
/* outline:1px solid cyan; /* LAYOUT TESTING */
display:table;
padding-top:30px;
margin:0px auto;
}
.footer_container .row div {
display:table-cell;
text-align:center;
vertical-align:middle;
}
.left,
.middle,
.right {
outline:1px solid magenta; /* LAYOUT TESTING */
width:340px;
list-style-type:none;
display:table-cell;
padding:0px;
margin:0;
}
.left li,
.middle li,
.right li {
color:#fff;
font-weight:bold;
font-size:16px;
font-family:Calibri, Arial, Helvetica;
text-align:center;
text-transform:uppercase;
text-decoration:none;
padding:0px;
margin:0;
}
.left li {
text-align:left;
}
.right li {
text-align:right;
}
.fb_link,
.twitter_link {
outline:1px solid magenta; /* LAYOUT TESTING */
padding:10px 30px;
}
.copyright,
.designBy {
/* outline:1px solid magenta; /* LAYOUT TESTING */
color:#6e6c64;
text-align:center;
margin:1em;
}
.copyright {
padding-top:30px;
}
a img {
border:none;
}
a:link {
color:#42413c;
color:#fff;
}
a:visited {
color:#6e6c64;
}
a:hover,
a:active,
a:focus {
text-decoration:none;
}
</style>
</head>
<body>
<div class="outer">
<header>
<h1>Wings of Hope for Pancreatic Cancer Research</h1>
</header>
<div class="nav_container">
<ul>
<li class="active"><a href="#" class="current">Home</a></li>
<li><a href="about.html">Mission</a></li>
<li><a href="contact.html">Ongoing<br>Research</a></li>
<li><a href="contact.html">Board of<br>Directors</a></li>
<li><a href="contact.html">Events</a></li>
<li><a href="contact.html">News</a></li>
<li><a href="contact.html">Patient/Caregiver<br>Comments</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div class="content_container">
<h2>Welcome</h2>
<section class="row">
<div><p><em>WINGS OF HOPE for PANCREATIC CANCER RESEARCH </em> was formed in February 2012 by Maureen A. Shul after losing her mother and brother within months of one another to pancreatic cancer. The non-profit foundation is dedicated to raising awareness and funding for the ongoing research, clinical trials and treatment of pancreatic cancer patients at the Pancreatic Cancer Research Program at the University of Colorado Cancer Center (UCCC).</p></div>
<div><p><img src="images/home_content_1.png" alt="doctors"></p></div>
</section>
<div class="hline"></div>
<section class="row">
<div>
<p class="sec_two">Pancreatic cancer is currently the fourth leading cause of cancer death in the United States. Of the most commonly diagnosed cancers, pancreatic cancer is the only one with a five-year relative survival rate in the single digits, at just 6 percent. This survival rate has not changed in the last 40 years.</p>
<p class="sec_two">By 2020 it is anticipated pancreatic cancer will rise from the fourth to the second leading cause of cancer death in the U.S. (based on projected changes in U.S. population demographics and incidence and death rates).</p>
<p class="sec_two">With no early detection tools, effective treatments or adequate funding for research, the rapidly rising threat of pancreatic cancer urgently demands an increase in awareness and research funding.</p>
</div>
<div><p><img src="images/home_content_2.png" alt="walkway"></p></div>
</section>
<div class="hline"></div>
<section class="row">
<div>
<p class="sec_three">Founded out of grief, driven by purpose and in pursuit of making a difference, WINGS OF HOPE for PANCREATIC CANCER RESEARCH is dedicated to<br>
- Accelerating the research<br>
- Providing the most advanced treatments<br>
- Finding the cure
</p>
</div>
<div><p><img src="images/home_content_3.png" alt="Shul Family"></p></div>
</section>
<p class="behope"><strong>JOIN THE EFFORT…BE A PART OF THE POSSIBLE, BE THE HOPE.</strong></p>
<div class="donate_link">Donate image goes here</div>
</div> <!-- content_container -->
<div class="footer_container">
<div class="row">
<ul class="left">
<li><a href="index.html">Home</a></li>
<li><a href="#">Mission</a></li>
<li><a href="#">Ongoing Research</a></li>
</ul>
<ul class="middle">
<li><a href="#">Board of Directors</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Patient/Caregiver Comments</a></li>
</ul>
<ul class="right">
<li><a href="#">Sponsers</a></li>
<li><a href="#">Donate/Volunteer</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="row">
<div class="fb_link"><img src="images/facebook_link.jpg"></div>
<div class="twitter_link"><img src="images/twitter_link.jpg"></div>
</div>
<div class="copyright">Copyright © 2012 Wings of Hope for Pancreatic Cancer Research</div>
<div class="designBy"> Website Design By <a href="http://foxdenwebsolutions.com" target="_blank">Foxden Web Solutions</a> </div>
</div> <!-- .footer_container -->
</div> <!-- .outer -->
</body>
</html>
Bookmarks