SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2013
    0 Post(s)
    0 Thread(s)

    Post Using multiple tfoot tags.. is it possible?


    While trying to make a product catalog, with 3 columns and 3 rows..

    I faced myself with this problem..

    How could I add a footer for each cell of each row?

    Is it possible to use tfoot more than once?

    If no, the workaround is to use css, right?

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Yorkshire, UK
    123 Post(s)
    1 Thread(s)
    You can use multiple tfoot elements, but they will all appear at the bottom of the table, you can't move them to anywhere else in the table. If you're wanting to include a footer section within each cell, then first of all I would question whether a table is suitable in the first place - if it is, you would need to put the footer -type contents into a para or div and style that.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Sydney, NSW, Australia
    25 Post(s)
    1 Thread(s)
    The tfoot goes at the bottom of the table on the screen and at the bottom of each page where the table appears when printed. If you want something with different placement to that then you can't use a tfoot.

    The tfoot must be defined before the tbody because when the page is printed the tfoot information will be needed at the bottom of each page the table is on which if the table starts close enough to the bottom of the page could even be before the first row of actual content.
    Stephen J Chapman, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts