Table-cell property ignores width

Posted by user1251698 on Stack Overflow See other posts from Stack Overflow or by user1251698
Published on 2012-10-24T10:50:03Z Indexed on 2012/10/24 11:01 UTC
Read the original article Hit count: 269

Filed under:
|
|

I have set a CSS propery table-cell for a div. I have also specified the width for the div and set overflow hidden. But because of the table-cell property the div does not care about the width. If I place any large image, it goes out of the width. How can i use the table-cell and use the fixed width for the div?

.right{
    display: table-cell;
    overflow: hidden !important;
    vertical-align: top;
    width: 400px;
}

© Stack Overflow or respective owner

Related posts about html

Related posts about css