|
Posted by David E. Ross on November 9, 2007, 1:43 pm
Please log in for more thread options On 11/8/2007 10:30 PM, runner7@fastmail.fm wrote:
> I appreciate the answers. I tried #1 from Ben and it definitely works,
> but "neighbor" won't get deeper when "stretch" exceeds the depth of
> "neighbor", so the content area always needs to be the same height as
> or deeper than the navigation area for the heights to line up.
>
> David, could you possibly provide a code example of what you mean?
>
Oops! I forgot. It's not that I use an enclosing DIV. It's that the
first element after the two DIVs has
style="clear: both"
I use an enclosing DIV when it creates an indented block for the columns.
Go to my <http://www.rossde.com/garden/garden_bloom.html>. Expose the
source HTML. (Ignore the long comment after the </BODY>; I use it to
copy and paste into the displayed content.) The columns are created by
<div class="cols col-left">
and
<div class="cols col-right">
The note seen at the bottom -- "Also see My Garden Diary" -- begins with
<p style="clear: both; text-align: center">
The CSS used by the DIVs is
.cols { width: 48%; /* use with col-left and col-right */
border-style: none;
text-align: justify;
margin-bottom: 1em }
.col-left { margin-left: 0; margin-right: auto;
padding-right: 1%;
float: left }
.col-right { margin-left: auto; margin-right: 0;
padding-left: 1%;
float: right }
--
David E. Ross
<http://www.rossde.com/>
Natural foods can be harmful: Look at all the
people who die of natural causes.
|