groads2 Posted April 24, 2013 Share Posted April 24, 2013 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 More sharing options...
dsonesuk Posted April 24, 2013 Share Posted April 24, 2013 Thats what it will do?,being a single row it will full the entire width/height defined by the height set by the parent table element. consider using max-height:200px; instead. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now