Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-10-26 08:42:07

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Span table head columns

This spans 2 row columns

|\2. spans two cols |
| col 1 | col 2 |
but how to span 2 head columns?

Offline

#2 2024-10-26 09:44:38

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,208
Website

Re: Span table head columns

A forward slash should work

|/3. spans 3 rows | row a |
| row b |
| row c |

see & test on the Textile doc site :textile-lang.com/doc/tables


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2024-10-26 10:22:27

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 310
Website GitHub GitLab Mastodon Twitter

Re: Span table head columns

|^.
|_\2. One thead spans two cols |
|-.
| col 1 | col 2 |

This Textile code is converted to the following HTML markup:

<table>
	<thead>
		<tr>
			<th colspan="2">One thead spans two cols </th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td> col 1 </td>
			<td> col 2 </td>
		</tr>
	</tbody>
</table>
One thead spans two cols
col 1 col 2

in the sandbox on //textile-lang.com/

Sorry, for some reason this ‹th› does not span both columns, as spans in the sandbox. On my server Texpattern v4.8.8 converts that correctly, too:

Last edited by Vienuolis (2024-10-26 12:59:06)

Offline

#4 2024-10-27 06:19:34

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Span table head columns

Vienuolis wrote #338065:

|^....

This Textile code is converted to the following HTML markup:

<table>...

in the sandbox on //textile-lang.com/

Sorry, for some reason this ‹th› does not span both columns, as spans in the sandbox. On my server Texpattern v4.8.8 converts that correctly, too:

Thanks!

Offline

Board footer

Powered by FluxBB