Tengo un div
et je veux le centrer sur l'écran avec JQuery mais ça ne marche pas, c'est embrouillé parce que j'ai centré d'autres éléments. divs
avec la même méthode.
CSS :
#textLinks
{
text-align:center;
}
JQuery :
$('#textLinks').css({
position: 'absolute',
left: ($(window).width()/2 - $('#textLinks').outerWidth()/2),
top: ($(window).height()/2 + $('#ShapesWrapper').outerHeight()/2)
});
JSFiddle lien : http://jsfiddle.net/j08691/8tvs8/9/
Page web actuelle : http://sosco.ir/index2.html