Question

I'm wondering how I could make a page type of 3 columns where I can add blocks of texts and for each block I could choose to add content to either sides of the block of text.

So by default I would have a block of text in the middle column, and optionally in one or both side of that text, on the same level.

I could just do this in code each time I have to add a page. But I'm just wondering if there's a better more userfriendly way to do this?

Thanks

Was it helpful?

Solution

YOu could use divs (styles to make them appear as 3 columns not provided):

<div id="wrapperDIV">
    <div id="col1">column 1</div>
    <div id="col2">column 2</div>
    <div id="col3">column 3</div>
</div>

or what i prefer is tables:

<table>
    <tr>
        <td>col 1</td>
        <td>col 2</td>
        <td>col 3</td>
    </tr>
</table>

you would create a wysiwyg editor into each column. There are tons of tutorials out there on how to use javascript/iframes/etc to create an RTF editor.

You'll then have to learn how to connect to a database of some sort using php and then save what the user entered into the rtf editor into the database to display it later.

OTHER TIPS

Sounds like a content management service (CMS). Easiest solution is to use something like "WordPress" to allow you to edit your content - you can pick your layout (3 columsn if you so choose), and many other customizations.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top