...

View Full Version : min-height attribute does not work



jcdevelopment
07-29-2010, 08:49 PM
I have a min-height on a div in my css. The only time it will work is when i take off the attribute "display:table-cell;"

Is there a way around this?


.agent_info {
width: 600px;
padding: 20px;
border-bottom: 1px solid #000;
overflow: hidden;
text-align: left;
display: table-cell;
vertical-align: middle;
min-height: 170px;
margin-left: 100px;
}

nikee
07-29-2010, 10:47 PM
I don't know a workaround, but i'd really like to know why you need to display it as a table-cell?

jcdevelopment
07-29-2010, 10:49 PM
to my understanding, it needs to be that way so you can vertically align your text in a div. Is there a work around for that?

nikee
07-29-2010, 11:13 PM
As far as i know, that's the only way with CSS. I'm sure there are some javascript hacks for this, if that's an option for you? But may i ask why you need a minimum height on a table cell? Could you post the entire source code?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum