Jump to content

IE table-cell


The Little Guy

Recommended Posts

That sucks :(

 

anyway, I have another table question...

 

I have a three column div, all using table-cell for the display type.

 

I want my left two columns to be 200px, and I would like my center one to expand to the needed size so all three fit the container they are in, how can I do that?

 

/* Container for all columns */
#container{
border:solid 1px #000;
width:98%;
margin:20px 10px 50px 10px;
}

/* Left Column */
.lnav{
display:table-cell;
width:200px;
border-right:solid 1px #999;
border-top:solid 1px #999;
text-align:center;
padding:5px;
}

/* Right Column */
.right{
display:table-cell;
width:200px;
vertical-align:top;
padding:5px;
border-top:solid 1px #AAA;
}

/* Center Column */
.content{
display:table-cell;
vertical-align:top;
padding:5px 5px 5px 10px;
border-right:solid 1px #999;
}

Link to comment
https://forums.phpfreaks.com/topic/150780-ie-table-cell/#findComment-792198
Share on other sites

I want my left two columns to be 200px, and I would like my center one to expand to the needed size so all three fit the container they are in, how can I do that?

 

You might not have liked my suggestion, but a css framework would do that for you. Of course I'm not forcing you to use one, but you didn't say "I'm not willing to use or consider using a css framework" and hence it was a relevant answer.

Link to comment
https://forums.phpfreaks.com/topic/150780-ie-table-cell/#findComment-792884
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.