|
Posted by Andy Dingley on 08/29/06 23:11
John wrote:
> since the left column is so
> long, I had to put the dreaded <p> </p> tags in there on the right hand
> column to fill up the space.
No you didn't. You're starting with a fundamental misunderstanding,
then asking us for details about how best to implement a basically
flawed idea.
Why do you need to add bogus content? What's the problem with one
column being longer than the other?
If you mean that you want the columns to always look the same height,
then there are techniques to do that. One obvious one is to use a
<table> -- if you're insistent on "things next to each other" being the
same height, then you're implicitly calling for table-style rendering
and you're better off being honest and up-front about it.
There are also ways to do it purely with CSS, but really I'd want wider
browser support for max-height before I went down that route. OTOH,
it's only cosmetic if it isn't supported, so why not?
Best of all is to use something other than HTML that really does
support this style of column layout and page flow (XSL:FO can do it
easily, if you wanted PDF output) -- but these are obviously
impractical for the Web.
Putting empty padding in there is _never_ a good idea.
> Is it better to do a bunch of <p> </p> tags, or one <p></p> with a bunch
> of lorem ipsum text in it equal to the background color?
I don't know. Is it better to bang your head on the wall, or on the
floor?
Navigation:
[Reply to this message]
|