I have a piece of code that works fine in IE and Firefox. It has 3 table cells inside the display: table; wrapper. The middle cell has a fixed width with an inverse image, and the left and right cells do not have a width and solid color. In firefox, etc. The left and right columns expand to fill the remaining space, since the table ... but in chrome these two cells have no width at all.
I need it to expand the left and right columns to fill the remaining space left and right of the center cell.
CSS
#navbar{ width:100%; height:43px; border-bottom:2px solid #ffffff; display:table; } #navbar #left{ display:table-cell; background:#fcb316; } #navbar #middle{ display:table-cell; width:1024px; height:43px; background:url(images/nav-bg.jpg) no-repeat; } #navbar #right{ display:table-cell; background:#8cc63f; }
HTML
<div id="navbar"> <div id="left"></div> <div id="middle"></div> <div id="right"></div> </div>
Glen
source share