I struggled with this for some of my pages with multiple columns using tables, and they just would not line up properly without lots of tweaking with extra line breaks, and needed more tweaking any time I added an item to any of the columns. Lining everything up was nearly impossible to achieve consistently, even with tables, until I figured this out with styles and divs.
For my purposes, I needed three equal width columns so:
For my REW site, I built a snippet for the style definitions that I named "three-column" for simplicity. This snippet needs to be included somewhere on each page that needs the layout. I put it just before the multiple column content. It could also be in a css file if you have access to that on your non-REW website, and then you wouldn't need it on each page.
===========================
<style type="text/css">
<!--
div.three_col {
position: relative;
display: inline;
float: left;
left: 10px;
width: 33%;
min-width: 240px;
}
div.clrboth {
clear: both
}
-->
</style>
==========================
I won't explain every style or its attributes, but a couple bear some comments:
You can change the styles for 2 or 4 or as many equal width columns as you like. The 33% width is pretty obvious. Change it to 50% for 2 equal columns, 25% for 4 equal columns, etc. Also change the min-width as required. For three columns, min-width is set to exactly 1/3 of your available main content area width. Your min-width will probably be different, and you just need to figure that out. You may not really need it. I just like to know for certain that each column will be a particular number of pixels wide. I added a 10 px left margin within each column to indent the whole structure a bit, but you can use 0 or any other margin you may like.
Then, I built my page, as per example at:
denverhomevalue . com / demo-three-column.php
I started by simply entering each column's contents, column by column, including heading styles, bullets, etc. Then I went into html mode and added divs around and between the columns to apply the style formatting. The end result doesn't render in the page editor the same way it does in a browser, but IMO that is a small inconvenience.
The page html code:
========================================
<p>#three-columns#</p>
<div>
<h2>Example Three Column Layout using CSS Styles and Divs</h2>
<div class="three_col">
<h3>Column 1 Heading</h3>
<ul>
<li>Item 1-1</li>
<li>Item 1-2</li>
<li>Item 1-3</li>
<li>Item 1-4</li>
<li>Item 1-5</li>
</ul>
</div>
<div class="three_col">
<h3>Column 2 Heading</h3>
<ul>
<li>Item 2-1</li>
<li>Item 2-2</li>
<li>Item 2-3</li>
<li>Item 2-4</li>
</ul>
</div>
<div class="three_col">
<h3>Column 3 Heading</h3>
<ul>
<li>Item 3-1</li>
<li>Item 3-2</li>
</ul>
</div>
</div>
<div class="clrboth"></div>
<h2>End of table</h2>
=================================
The end result is multiple columns that always line up with the top of each other, no matter how many items I may add to each column.
Enjoy!

Reply With Quote

