kla0005 Posted June 30, 2010 Share Posted June 30, 2010 Hey Guys, If i make this: <table><tr><td><div></div></td></tr></table> Then, if the table has a height at 300px, and the td at 100px, the table dosent get bigger automaticly? How can that be? - If i replace the div with a span, then it works fine with the 'height' thing. But, how can i make the table follow the div? Thanks :] Quote Link to comment https://forums.phpfreaks.com/topic/206309-stupid-problem-with-table-and-div/ Share on other sites More sharing options...
bobby317 Posted July 5, 2010 Share Posted July 5, 2010 Lets see your CSS code. Internet explorer has some issues using table tags and css you can google that and get some good info. But basicly you would have to do something like: body table { height: 300px; } I suspect you are just doing table { height: 300px; } same goes for <tr> you have to do table tr { height: 300px; } If you are having this problem with fire fox make sure you have ; after all css it is picky. let me know if this help and post CSS Quote Link to comment https://forums.phpfreaks.com/topic/206309-stupid-problem-with-table-and-div/#findComment-1081479 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.