PDA

View Full Version : centering in all screens



javismiles
23 Jul 2011, 2:19 PM
im using loading mask to set a loading picture when sencha is loading
problem is i cant manage it to have it centered, if i use top:50% left:50%, the image actually appears too much to the right and bottom of screen in my android phone, how can we have the image perfectly centered in all screens and resolutions?

#loading-mask {
background-repeat:no-repeat;
background-image:url(../../graphic.gif);
position:absolute;
height:250px;
width:277px;
top: 50%;
left: 50%;
}