我在这里将我的 div 居中遇到了一个巨大的问题:http ://www.divisionforty.com/wall/artists/我一辈子都无法让盒子在屏幕上居中。我试过 margin: 0 auto; 但由于某种原因,我无法让它工作。
任何帮助,将不胜感激,
HTML
<div class="row">
<div class="work">
<div class="span12">
<figure >
<a href="http://www.divisionforty.com/wall/artists/cali-balles/">
<img width="200" height="200" src="http://www.divisionforty.com/wall/wp-content/uploads/2012/12/Cali-Balles-05b-250x250.jpg" class="attachment-artists wp-post-image" alt="Cali Balles, Branch Series [detail] Blown Glass 2010" />
<dd>
Balles, Cali
</dd>
</a>
</figure>
CSS
/*Artists*/
.work {
}
.work figure {
float: left;
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
margin-bottom: 20px;
width:250px;
height: 250px;
line-height: 200px;
-webkit-filter: sepia(0.4);
position: relative;
padding: 0 !important;
transition: 0.6s;
-webkit-transition: 0.6s;
-moz-transition: 0.6s;
-o-transition: 0.6s;
-ms-transition: 0.6s;
}