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?

Link to comment
Share on other sites

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.

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.