Css Display:table-cell With Div Inside Table
How to make display:table-cell style works (or look-alike alternative) if divs with style table-row are inside table cells? (see the link) http://jsfiddle.net/ELKQg/460/ I'd like t
Solution 1:
- The extra
<table>
containing your<div>
s in.container1
needs to havewidth: 100%
display: table-cell
elements don't necessarily need a containingdisplay: table-row
as long as the parent isdisplay: table
. Set the.row
to that (ideally you'd re-name it, seeing as the rule no longer makes sense)
Fixed and forked your demo: http://jsfiddle.net/barney/ahMg8/
Solution 2:
Use display: table
for the parent table before using display:table-cell
Post a Comment for "Css Display:table-cell With Div Inside Table"