Formating using tables

Formating using tables

by Tim Gessner -
Number of replies: 2

I would like to format each week in two columns.  I can use HTML tables to create the two columns, but I can't seem to add any activities to a table cell.

Is this possible?  Perhaps there is another way to do this?

Average of ratings: -
In reply to Tim Gessner

Re: Formating using tables

by Itamar Tzadok -

Afaict not possible without some scripting or hacking. You can lay out the activities in more than one column by adding some css to change the display type of li tags in the section from 'block' to 'inline-block'. But the actual lay out of the tags will depend on the width of the section div and on the length of the item labels and so may not be rendered nicely in two columns. If you javascript you can add to the page a script which takes the li items of the section (which are the html rendering of the activity/resource items) and append them to your table cells. hth smile

In reply to Tim Gessner

Re: Formating using tables

by Gerald Buss -

There is a way to do this using three labels that break up a table into three parts in Moodle 1.9. You will be able to add and move around activities just like normal.  It is pretty easy to do, but it looks really strange until you get that third label in place. The important thing is to remember  to save the label while in html mode or Moodle will try to fix your incomplete table. 

I found the directions on how to do it here:

http://moodlea.blogspot.com/2010/12/tweaking-moodle-course-to-display.html

 

First Label

<table border="0" cellpadding="1" cellspacing="1">
   <tbody>
   <tr valign="top">
   <td>




Second Label (where you want the 2nd column to begin

</td>
   <td>


Third Label (at the end)
</td>
   </tr>
   </tbody>
   </table>

Attachment 2columnofactivities.PNG