Jump to content

How do i prevent the <th> from filling the whole table when no data rows?


groads2

Recommended Posts

I had an html form that has several tables. Sometime there is no xml data to file the table with and the table is filled entirely with the <tr> row that has the <th>. I need the row containing the <th> to maintain a size of 20px and not consume the entire table when there are no data rows.this is an example of what I am refering too.

<html><head></head><body><div style="border:1px solid red;width:600px;height:400px"><table style="border:1px solid blue;width:300px;height:200px"><tr style="height:10px"><th style="text-align:center;background-color:blue;height:10px">header</th></tr></table><div></body></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...