I am using jQuery animation on my page, which adds some CSS properties, and I don’t understand why it margin: autodoesn’t work.
HTML code (with style properties added by jQuery):
<body style="overflow: hidden;">
<div id="tuto_wamp" style="width: 7680px; height: 923px; ">
<div style="height: 549px; width: 1280px; margin-top: 0px; margin-left: 0px; position: absolute; overflow-y: hidden; overflow-x: hidden; ">
<div class="content_tuto">
<img src="images/install1.png" alt="">
</div>
</div>
</div>
</body>
My CSS code is:
#tuto_wamp
{
background: #3a393c;
width: 100%;
}
.content_tuto
{
width: 100%;
margin: auto;
display: block;
}
I don’t know which property blocks margin: autoto center the image.
Thank.
source
share