このフォームを中央揃えにするにはどうすればよいですか? 私が試した、margin-left:auto;、margin:50px;、margin: 0 auto 0 auto; および他のいくつかのコードですが、何も機能していないようです。すべてが中央揃えになるようにしたいのですが、追加のアイテムを追加したい場合は、それらも中央揃えになります。
これがjsfiddleです:http://jsfiddle.net/ffKKN/1/
CSSは次のとおりです。
.radio div[type='radio'] {
background: transparent;
border:0px solid #dcdcdc;
border-radius:10px;
padding:0px;
float:left;
margin-left: 10px;
cursor:pointer;
}
.radio div.active {
box-shadow:0 0 2px 0px transparent inset;
}
.tablebuttons img {
width: 60px;
height: 55px;
border: 0px solid #666;
background: #fff;
display:block;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
.question {
margin-left: auto;
display: none;
clear: both;
}
.question:nth-child(1) {
display:block;
}
#linkDiv {
margin: 0;
}
.clear {
clear: both;
}