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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.