|
Cookbook /
MakeColumnsSummary: Create columns on a page without using tables.
Version: 1.0
Maintainer: BenWilson
Category: Layout
QuestionHow can I create columns without adding all that table markup code? AnswerThis handy little script lets you select where the split in the text should be. This recipe then puts the two bits of text into a two-column table. Put make_columns.php in your cookbook/directory, and rename 'make_columns.php'. Add the following line to local/config.php include_once("This recipe provides very simple markup to allow a page to contain a section sub-divided into two columns of equal width, and optionally allows full-width text above and below the two-column section. Note the restriction here is that there can only be one section per page that is broken into columns. The recipe provides exact control so the editor can decide where to put the split
Notes and Comments
(Old comments removed as issues raised have since been addressed.) Versions2005-09-22 : Make Columns - version 0.1 - BenWilson
2005-10-04 : Make Columns - version 0.2
2005-10-04 : Make Columns - version 0.32005-11-20 : Make Columns - version 1.0 - BenWilson
See Also
ContributorsCategory: Ben Wilson Maintained
User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |