Home › Forums › CSS › center div with position absolute › Re: center div with position absolute
December 13, 2011 at 11:38 am
#92600
Member
Oh yeah, this is the answer I was looking for, many thanks.
But now I have another issue, I can’t center some thumbnails vertically.
I’ve tried to use : vertical-align: middle; but with no success.
Markup for this is:
and this css:
.jThumbnailScroller#tS1{
position:relative;
width:100%;
}
.jThumbnailScroller .jTscrollerContainer{position:absolute;}
.jThumbnailScroller .jTscroller{position:relative; height:100%; margin:0; left:0; top:0; display:inline-block; *display:inline;}
.jThumbnailScroller{
position:relative;
width:800px;
height:255px; /*changed 255px set it if you change #tt margin-top value*/
margin:0;
padding:0;
overflow:hidden;
}