Teacher, why is the div not centered after I give it a random width with margin:auto?
永~不~低~头
永~不~低~头 2018-12-21 10:37:40
0
1
1555

Master, why is the div not centered after I give it a random width with margin:auto?

永~不~低~头
永~不~低~头

reply all(1)
鸿运达
<section style="width:100%; float:left;">
<div style="width:1000px; height:500px; background:#f00; margin:0 auto;"></div>
</section>

Is this so?


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template