Jump to content

Stupid Problem with Table and Div?


kla0005

Recommended Posts

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 :]

Link to comment
https://forums.phpfreaks.com/topic/206309-stupid-problem-with-table-and-div/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.