Re: creating tables with internal borders with RedCloth
- From: Stefano Crocco <stefano.crocco@xxxxxxxx>
- Date: Mon, 30 Jun 2008 06:06:49 -0500
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
.
- Follow-Ups:
- Re: creating tables with internal borders with RedCloth
- From: Hassan Schroeder
- Re: creating tables with internal borders with RedCloth
- From: Rimantas Liubertas
- Re: creating tables with internal borders with RedCloth
- From: Michael Morin
- Re: creating tables with internal borders with RedCloth
- References:
- creating tables with internal borders with RedCloth
- From: Stefano Crocco
- Re: creating tables with internal borders with RedCloth
- From: Michael Morin
- creating tables with internal borders with RedCloth
- Prev by Date: Re: Why can't I return "Threads.list" Array in DRb?
- Next by Date: Re: Threads and Ruby
- Previous by thread: Re: creating tables with internal borders with RedCloth
- Next by thread: Re: creating tables with internal borders with RedCloth
- Index(es):
Relevant Pages
|