On 28/11/12 11:09, Lex Trotman wrote:
> On 27 November 2012 18:28, 杨荣权 <[email protected]> wrote:
>> Hi, Guys:
>> I read documentation and investigate the source code, and found that
>> there is no way to use a fixed width table.
>>
>> The new table is introduced in ASCIIDOC in version 8.x, the table
>> declination is:
>> [width="15%"]
>> |=======
>> |1 |2 |A
>> |3 |4 |B
>> |5 |6 |C
>> |=======
>>
>> that is not what I want! I just want the old version. For example: the table
>> width option is 400 pix.
>> [width="400"]
>> |=======
>> |1 |2 |A
>> |3 |4 |B
>> |5 |6 |C
>> |=======
>>
>> How to do that?
>
> Hi,
>
> Absolute widths are no longer available, I guess because they are not
> portable between backends and media. And px is also not portable,
> 400px on a "retina" display on iPhone/iPod would only be an inch or
> so.
>From memory I think backend portability (HTML and DocBook compatible
tables) was the issue. Also HTML5 no longer supports the table width
attribute.
You could set the width using CSS. First set the table class using the
role attribute:
[role="width-400px"]
|=======
|1 |2 |A
|3 |4 |B
|5 |6 |C
|=======
Then style it from your CSS file:
.width-400px {width: 400px;}
Cheers, Stuart
>
> Cheers
> Lex
>
>
>>
>> Jacky
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "asciidoc" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/asciidoc/-/iteqiiLeylcJ.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/asciidoc?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.