Wiktenauer logo.png

Difference between revisions of "Widget:Column1"

From Wiktenauer
Jump to navigation Jump to search
 
Line 1: Line 1:
<includeonly><style>
+
<includeonly><input id="box1" type="checkbox">
#box1:checked ~table .column1 {
+
<label for="box1"><!--{$name|escape:'text'}--></label></includeonly>
    display: table-cell;
 
}
 
#box2:checked ~table .column2 {
 
    display: table-cell;
 
}
 
</style>
 
<input id="box1" type="checkbox">
 
<label for="box1"><!--{$name|escape:'text'}--></label>
 
<input id="box2" type="checkbox">
 
<label for="box2"><!--{$name|escape:'text'}--></label>
 
 
 
<table border=1>
 
    <thead>
 
        <tr>
 
            <th colspan="2">The table header</th>
 
        </tr>
 
    </thead>
 
    <tbody>
 
        <tr>
 
            <td class="column1"> I am a column 1 </td>
 
            <td class="column2"> I am a column 2 </td>
 
        </tr>
 
        <tr>
 
            <td class="column1"> I am a column 1 </td>
 
            <td class="column2"> I am a column 2 </td>
 
        </tr>
 
        <tr>
 
            <td class="column1"> I am a column 1 </td>
 
            <td class="column2"> I am a column 2 </td>
 
        </tr>
 
    </tbody>
 
</table>
 
</body></includeonly>
 

Latest revision as of 03:10, 3 June 2020