CSS - center an oversized div inside a table cell which is too small

Posted by domspurling on Stack Overflow See other posts from Stack Overflow or by domspurling
Published on 2010-05-06T15:20:30Z Indexed on 2010/05/06 15:38 UTC
Read the original article Hit count: 271

Filed under:
|
|

I want to display a DIV inside a table cell which is too narrow for it. I'm using overflow:hidden to allow the div to spill out one side of the table cell but now I want to center it so that it spills out a wee bit on both sides insdead of alot on one side.

How do I horizontally center a DIV inside a TD which is too narrow for the DIV?

© Stack Overflow or respective owner

Related posts about html

Related posts about css