4 Replies - 317 Views - Last Post: 03 October 2017 - 11:50 PM

#1 Maxx5  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 203
  • Joined: 15-September 15

tables

Posted 03 October 2017 - 02:20 PM

Can I duplicate the top row of cells at the bottom. So I have two green bands?

http://www.empowered...toba.ca/Buy.php

This is the code I want to copy to the bottom of the table.

<thead>
        <tr>
            <th colspan="3">&nbsp;</th>
        </tr>
    </thead>


This is the entire code.

<table class="zui-table" align="center">
    <thead>
        <tr>
            <th colspan="3">&nbsp;</th>
        </tr>
    </thead>
    <tbody>
        <tr align="center">
            <td width="31%">DeMarcus Cousins</td>
            <td width="35%">C</td>
            <td width="34%">6'11"</td>
        </tr>
        <tr align="center">
            <td>Isaiah Thomas</td>
            <td>PG</td>
            <td>5'9"</td>
        </tr>
        <tr align="center">
            <td>Ben McLemore</td>
            <td>SG</td>
            <td>6'5"</td>
        </tr>
        <tr align="center">
            <td>Marcus Thornton</td>
            <td>SG</td>
            <td>6'4"</td>
        </tr>
        <tr align="center">
            <td>Jason Thompson</td>
            <td>PF</td>
            <td>6'11"</td>
            
        </tr>
        
    </tbody>
    
</table>


Is This A Good Question/Topic? 0
  • +

Replies To: tables

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 5074
  • View blog
  • Posts: 13,697
  • Joined: 18-April 07

Re: tables

Posted 03 October 2017 - 04:54 PM

You can add a <tfoot> tag. While there is no equivalent as <th> you can instead style the <tfoot> tag to look just like the <th>. Which in most cases the <th> is just bolded and possibly centered. :)
Was This Post Helpful? 0
  • +
  • -

#3 Maxx5  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 203
  • Joined: 15-September 15

Re: tables

Posted 03 October 2017 - 05:23 PM

Is this Right?
<table class="zui-table" align="center">
    <thead>
        <tr>
            <th colspan="3">&nbsp;</th>
        </tr>
    </thead>
    <tbody>
        <tr align="center">
            <td width="31%">DeMarcus Cousins</td>
            <td width="35%">C</td>
            <td width="34%">6'11"</td>
        </tr>
        <tr align="center">
            <td>Isaiah Thomas</td>
            <td>PG</td>
            <td>5'9"</td>
        </tr>
        <tr align="center">
            <td>Ben McLemore</td>
            <td>SG</td>
            <td>6'5"</td>
        </tr>
        <tr align="center">
            <td>Marcus Thornton</td>
            <td>SG</td>
            <td>6'4"</td>
        </tr>
        <tr align="center">
            <td>Jason Thompson</td>
            <td>PF</td>
            <td>6'11"</td>
           </tr> 
         <tfoot>
   <tr>
            <th colspan="3">&nbsp;</th>
        </tr>
  </tfoot>
        
    </tbody>
    
			</table> 

Was This Post Helpful? 0
  • +
  • -

#4 Maxx5  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 203
  • Joined: 15-September 15

Re: tables

Posted 03 October 2017 - 05:52 PM

Found another way around it. But thank you.
Was This Post Helpful? 0
  • +
  • -

#5 andrewsw  Icon User is online

  • the case is sol-ved
  • member icon

Reputation: 6380
  • View blog
  • Posts: 25,775
  • Joined: 12-December 12

Re: tables

Posted 03 October 2017 - 11:50 PM

The align and width attributes of table elements (and other elements) are not supported in HTML5. Use CSS instead.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1