From: Stefano Crocco Date: 2008-06-30T20:06:49+09:00 Subject: Re: creating tables with internal borders with RedCloth On Monday 30 June 2008, Michael Morin wrote: > Stefano Crocco wrote: > > I'm having a problem using RedCloth. I know this question is more suited > > for a RedCloth mailing list, but the only one I found (the one on the > > RedCloth page on rubyforge) is for people who wants to contribute to it, > > not for those asking for help. If someone knows of another mailing list, > > please let me know. > > > > My problem is quite simple: I want to use RedCloth and Textile to create > > a table with borders around the it and between all cells, as the one > > produced by specifying the rules="all" attribute to the html table tag: > > > > > > ... > >
> > > > I can't find out how to obtain this. The standard Textile syntax for > > tables produce a borderless table, while specifying the border style for > > the whole table, as shown in the Textile reference > > (http://hobix.com/textile/) only puts the border around the whole table. > > > > I know I can insert the table using html, but before doing so, I'd like > > to be sure there isn't a better alternative. > > > > Any ideas? > > > > Thanks in advance > > > > Stefano > > You want a border around every cell? If so, try something like this. > > table(mytable). > > |10|20|30|40| > > Then your CSS could look something like this: > > table.mytable td { > border: 1px solid black; > } Thanks for your answer, but this is not what I need. It seems I wasn't very clear in explaining my problem. I need a table with a grid separating rows and columns, something like this: _ _ _ |_|_|_| |_|_|_| |_|_|_| What you suggested puts a border around each cell, but a border which is separated from the border around the neighbour cells (re-reading my original post, I must admit that I seemed to be asking for this. I apologize for having been so confusing.) Stefano