Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TFOOT not recognized in css file

Featured Replies

I'm trying to create a generic style for all tables including table headers and table footers using CSS. Table and TH work, but I can't seem to get THEAD or TFOOT to work. I followed what seem to be specifications for the table design by placing the <thead> <tfoot> <tbody> in that order.

 

1) The first problem is that in both firefox and ie the footer row is being displayed immediately after the header, which after researching around the web shouldn't happen. Even though the tag is immediately following the <thead> it's supposed to be positioned at the bottom of the table.

 

2) CSS styles are not being applied to the <thead> or <tfoot>.

 

Below is my XHTML and CSS...

 

<table runat="server" id="tblMain">

<thead>

<tr>

<th colspan="2">

Abstract Submission</th>

</tr>

</thead>

<tfoot>

<tr>

<td colspan="2"><asp:Button ID="cmdSubmit" Runat="server" Text="Submit Abstract"></asp:Button></td>

</tr>

</tfoot>

 

<tbody>

<tr>

<td>Subject</td>

<td>

<asp:TextBox id="txtSubject" runat="server"></asp:TextBox></td>

</tr>

<tr>

<td>Title</td>

<td>

<asp:TextBox id="txtTitle" runat="server" TextMode="MultiLine" ></asp:TextBox></td>

</tr>

<tr>

<td>Category</td>

<td>

<asp:DropDownList id="cmbCategory" runat="server"></asp:DropDownList></td>

</tr>

<tr>

<td>Summary</td>

<td>

<asp:TextBox id="txtSummary" runat="server" TextMode="MultiLine"></asp:TextBox></td>

</tr>

<tr>

<td>Body</td>

<td>

<asp:TextBox id="txtBody" runat="server" TextMode="MultiLine"></asp:TextBox></td>

</tr>

</tbody>

 

</table>

 

 

 

CSS:

 

table

{

/*background-image: url("/ebusiness/Images/AptifyTableBackground_Medium.png");

background-repeat:repeat-x;

background-color: #e0cdd2;

border: solid 1px #3d6dcc;*/

border-collapse: collapse;

width: 90%;

 

color:#0276b3;

}

 

table td

{

padding:7px;

 

}

 

 

table th

{

background-color: #efe7d2;

/*background-image: url("/ebusiness/Images/AptifyTableHeader.png");

background-repeat:repeat-x;*/

color:#333333;

/*border: solid 1px 1px 1px 1px #3d6dcc;*/

font-size:10pt;

padding-left: 10px;

text-align:left;

font-weight:normal;

text-indent:10px;

height:20px;

line-height:20px;

}

 

TFOOT

{

 

text-align:right;

background-color:Black;

}

 

 

* If anyone can help it would be greatly appreciated.

 

Thanks,

Krys

Have you tried "TFOOT" in lowercase within the CSS?

Odd, I've just created an HTML file with that code and styles tfoot as per the stylesheet.

 

Have you tried it isolated as a single page with no other styles?

  • Author
Have you tried "TFOOT" in lowercase within the CSS?

 

 

Yeah I tried the lower and upper (also lower and upper in the html code).

 

I actually tried these options as well in the CSS:

 

tfoot tr td

{ }

 

tfoot tr

{}

 

tfoot td

{}

 

** I also am using SiteFinity CMS to create my pages. This CMS seems to create the pages dynamically so I'm not sure if something in there could be affecting this...

  • Author

I looked at the page source of the page and it looks as if the CMS is stripping out the <thead>, <tfoot> and <tbody> tags.

 

So all code in my original post should be correct in case anyone is interested using those tags w/css.

 

Thanks and sorry for the confusion,

 

K

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.