Apparently, adding:
td {
display: block; /* or inline-block */
}
solves the problem as well.
Another possible solution is to set table-layout: fixed;
for the table, and also set it’s width
. For example: http://jsfiddle.net/fd3Zx/5/
More Related Contents:
- Applying an ellipsis to multiline text [duplicate]
- With CSS, use “…” for overflowed block of multi-lines
- Place text after dots inline with the second line of text overflow ellipsis
- text-overflow is not working when using display:flex
- Two divs side by side – Fluid display [duplicate]
- Expand a div to fill the remaining width
- How to make an image center (vertically & horizontally) inside a bigger div [duplicate]
- Can I write a CSS selector selecting elements NOT having a certain class or attribute?
- Margin-Top push outer div down
- Add centered text to the middle of a horizontal rule [duplicate]
- Make wrapper take maximum width of child image? [duplicate]
- How can I display just a portion of an image in HTML/CSS?
- Center aligning a fixed position div
- Difference between position:sticky and position:fixed?
- How to bevel the corner of a block div?
- CSS Float Logic
- How to create a Slanted Background with CSS? [duplicate]
- Centering floating divs within another div
- How to center div vertically inside of absolutely positioned parent div
- Vertical Alignment of text in a table cell
- How to use an tag inside a in the middle of a text? [duplicate]
- CSS to line break before/after a particular `inline-block` item
- Table overflowing outside of div
- Center an image horizontally using CSS
- Alternate background colors for list items
- Styling HTML email for Gmail
- Change Bootstrap input focus blue glow
- Angular4 – Scrolling to anchor
- Why use a sprite sheet rather than individual images?
- Link external CSS file only for specific Div [duplicate]