开发者

Vertical Align Issue

I have following styles which wor开发者_JAVA百科k greate but Vertical-Align:middle or bottom doesn't work in it. every thing inside goes top ofthe div

.Progress
{    
display: inline-block;
z-index: 1000;
width:auto;
height: auto;
background-color: #A9C646;
vertical-align: bottom;
text-align: center;
text-align: -moz-center;
!text-align: center;
position: absolute;
opacity: 0.4;
filter: alpha(opacity = 40);
}


hey you can find here css hacks for this issue here


If you have height: auto, then the container will be the size of the items it contains, thus is will always appear at the top. Try giving it a defined height.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜