Div Overflow With Display Table-cell
I have a number of divs inside another div trying to make a 'bbokshelf'. In order to align the 'books' divs bottom, I'm using the display:table-cell css property, and the cointaine
Solution 1:
Instead of display: table-cell;
try display: inline-block;
like so.
.magazinebookcase.books {
display: inline-block;
vertical-align: bottom;
text-align:center;
}
Solution 2:
The problem you're having is that to get your books narrow, you're using a narrow width. That width, though, is inherited by the element with the book title. That element though, is displayed after a rotation, but it's width is still narrow. In other words, the width is relative to the local coordinate system (which is the only way to do it when rotations are not multiples of 90 degrees).
Post a Comment for "Div Overflow With Display Table-cell"