Jump to content

[SOLVED] Div with 100% width and overflow: hidden in table


Kieran Menor

Recommended Posts

Hi, I have this DIV with 100% width and overflow: hidden in a table cell. My problem is that it does not keep these. Instead it stretches the fork out of the page as seen here:

 

http://misc.smwcentral.net/imageview/exhibita.html

 

Now, if you put it in a DIV instead of a table cell, it works completely as expected:

 

http://misc.smwcentral.net/imageview/exhibitb.html

 

How do I make it behave?

Don't tell me what not to use. Tables are perfectly fine in the right context. Also, width is a prefectly valid attribute in HTML 4. Lastly, this is merely an example of how it behaves in a table. I do, in fact, need the 100% width, so setting a static width on the div will not solve my problem.

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.