On 01/11/11 15:41, Brett Parker wrote:
So, something like: http://miranda.sommitrealweird.co.uk/~brettp/temp/chrisg-3col/ Then?
The problem with this approach is that "the wrong kind of" data can mess up the layout. Eg insert an image into the first cell under Subheading 1 that forces the browser to increase the width of that "column", and the data in the following rows won't follow suit (unless I've missed something clever in the CSS). That's fine as long as you know what it going into the cells in advance, but otherwise...
If there is a vertical relationship between the cells in Chris's example, it may well be that using tables is "correct", but otherwise I don't know of a way to make it work elegantly in CSS. It ought to be fairly simple to be able to specify tab levels in CSS so that everything at the same tab level will be vertically aligned regardless of content, but that's not an option to my knowledge.