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:

<table rules="all" style="border:1px solid black">
...
</table>

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


.



Relevant Pages

  • Re: creating tables with internal borders with RedCloth
    ... RedCloth mailing list, but the only one I found (the one on the RedCloth page ... The standard Textile syntax for tables ... the border around the whole table. ... Become an About.com Guide: beaguide.about.com ...
    (comp.lang.ruby)
  • Re: creating tables with internal borders with RedCloth
    ... RedCloth page on rubyforge) is for people who wants to contribute to it, ... I want to use RedCloth and Textile to create ... only puts the border around the whole table. ... separated from the border around the neighbour cells (re-reading my original ...
    (comp.lang.ruby)
  • creating tables with internal borders with RedCloth
    ... I'm having a problem using RedCloth. ... The standard Textile syntax for tables ... the border around the whole table. ... I know I can insert the table using html, but before doing so, I'd like to be ...
    (comp.lang.ruby)
  • Re: SUM CELL BORDERS? (and by colour too?)
    ... Each cell has a Borders property and the existence of a right edge border ... if the cell to the right has a left border then you get that cells ... you can sum numeric contents of cells and you can sum the height ... (Excel Add-ins / Excel Programming) ...
    (microsoft.public.excel.misc)
  • Re: SUM CELL BORDERS? (and by colour too?)
    ... Counting the number of cells with a right border is exactly what I'd like to ... you can sum numeric contents of cells and you can sum the height ... (Excel Add-ins / Excel Programming) ...
    (microsoft.public.excel.misc)