[pmwiki-users] displaying two tables side by side

Lucian Wischik lu.nn at wischik.com
Thu Nov 30 04:52:43 CST 2006


Brian <brianbashi at gmail.com> wrote:
>  How do you display two tables side by side, instead of stacking on
>  top of each other?

I did this with the following CSS:
#wikitext table {display:inline;}

(Where should you put that CSS? I'm not sure. Maybe in your site's css
folder. What I did was use one of the "Enable HTML" recipes, and then
I wrote in my page
 (:html:)
 <style type=text/css>#wikitext table {display:inline}</style>
 (:htmlend:)

Given the CSS, the following example code will generate three tables
side-by-side. Each table has two rows and one column.

||
||http://www.wischik.com/irene/cross/1-small.jpg ||
||      1 Jesus is condemned to death            ||
||
||http://www.wischik.com/irene/cross/2-small.jpg ||
||      2 Jesus receives his cross               ||
||
||http://www.wischik.com/irene/cross/3-small.jpg ||
||      3 Jesus falls for the first time         ||


PS. I bet PM will post a simpler way of achieving what you want via
wikistyles!

-- 
Lucian





More information about the pmwiki-users mailing list