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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.