2

How can I have multi-column text flow in div for XHTML please? (if possible)

I'm looking for a cross-browser specification.

Thank you.

Francisc
  • 77,430
  • 63
  • 180
  • 276
  • Sounds like you're looking for a ``.
    – LarsH Sep 10 '10 at 22:10
  • @LarsH: Sounds like you haven't been following webdesign for the last decade or so. – Epcylon Sep 10 '10 at 22:16
  • There is no reason to be mean. Thanks for the answer, LarsH, but although a table would do the trick if content was predictible, I cannot use it as the user will input the text as a whole rather than split in two. – Francisc Sep 10 '10 at 22:20
  • @Epcylon, sounds like you fell on the kneejerk tables=evil bandwagon. FYI I don't think the original q said "text flow". Or else I missed it. Thanks @Francisc. – LarsH Sep 11 '10 at 03:09
  • I wasn't refering to text flow, but any number of other reasons for why using tables for layout is a bad idea. See for instance these links: http://en.wikipedia.org/wiki/Tableless_web_design, http://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html, http://www.hotdesign.com/seybold/ – Epcylon Sep 11 '10 at 11:21
  • Yup, I edited the question as it was very unclear and I'm sorry for that. – Francisc Sep 11 '10 at 11:25
  • @Epcylon, "why using tables for layout is a bad idea". The original q did not specify "layout". There are good and well-known reasons not to abuse tables **to control page layout**, but that use was not specified in this question. – LarsH Sep 11 '10 at 11:28

2 Answers2

1

You can try one of the many techniques documented pretty much all over the internet. Some quick suggestions:

Epcylon
  • 4,674
  • 2
  • 26
  • 35
1

There is currently no cross-browser compatible HTML/CSS based way. People are working on it, see: http://www.w3.org/TR/css3-multicol/ but support is experimental.

supakeen
  • 2,876
  • 19
  • 19