Alex Rivera | Logout

display: table-cell alignment issues when images are used

Asked 2012-08-21T23:13:24.533
8

omg this is driving me mad. I have one table-row containing two table-cells. if both cells contain only text it works just fine, but the moment I put an image on one "cell", the other cell jumps to align at baseline... even though they are in different divs.

jsfiddle here

halpl!

Edit
Report

1 Answer

8

Specify vertical align..

.table-cell { 
    display: table-cell;
    vertical-align:top;
    }
​
answered 2012-08-21T23:16:56.647

Your Answer