ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > RocketCake
forum topic indicator table columns
person icon
g4hdu
Registered User
Quote
2024-11-17 15:17:02

Not sure if I am being particularly stupid today but is there a way in RC to define column groups and column headings (the th header)?

I would like to specify widths of columns with code like

<table style="width: 100%">
<colgroup>
<col span="1" style="width: 15%;">
<col span="1" style="width: 70%;">
<col span="1" style="width: 15%;">
</colgroup>

or

table {
width: 100%;
border: 1px solid 000;
}
th.from, th.date {
width: 15%
}
th.subject {
width: 70%; /* Not necessary, since only 70% width remains */
}
<table>
<thead>
<tr>
<th class="from">From</th>
<th class="subject">Subject</th>
<th class="date">Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>[from]</td>
<td>[subject]</td>
<td>[date]</td>
</tr>
</tbody>


While I appreciate that tables used for other than tabulated data is very frowned upon I appreciate the simplicity in some situations.

person icon
niko
Moderator
Quote
2024-11-18 08:53:29

No, headers and groups are currently not supported, sorry.

person icon
g4hdu
Registered User
Quote
2024-11-24 07:45:44

Thanks for the reply. Solved the problem of making tables useful by implementing java script to set the column widths in the first row.

Needed to overcome the deprecated in html5 "width=", it would have been better for me to use css styles but hey ho.

Next job is to make the javascript function universal and implement accessibility improvements.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |