View Full Version : min-height attribute does not work

Jul 29th, 2010, 09: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;

Jul 29th, 2010, 11: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?

Jul 29th, 2010, 11: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?

Jul 30th, 2010, 12:13 AM
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?