У меня проблемы с попыткой центрировать содержимое одного из моих наборов полей.
Он имеет изображение с картинки, поле ввода и кнопку отправки. Я пытался использовать поле: 0 авто; но безрезультатно ...
<fieldset class="fieldset_submit">
{if captcha}
{captcha}
<p>Please enter the text you see above</p>
<input type="text" name="captcha" value="" />
{/if}
<input type="submit" name="submit" value="Send" class="submit" />
</fieldset>
КОД CSS:
.fieldset_submit {
display: block;
width: 500px;
margin: 0 auto;
border: none;
text-align: center;
padding: 40px;
}
input, select {
display: block;
margin: 5px 0 20px 0;
width: 300px;
height: 25px;
font-size: 16px;
color: gray;
padding: 5px;
border: 2px solid #ccc;
}
select {height: 35px;}
label {display: block; margin-bottom: 10px;}
fieldset.fieldset_centre textarea {
border: 2px solid #ccc;
color: gray;
padding: 10px;
font-size: 16px;
width: 800px;
margin: 0 auto;
}
.submit {
width: 100px;
border: none;
height: 30px;
text-align: center;
text-transform: uppercase;
background-color: #ff8399;
color: white;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
.submit:hover {cursor: pointer;}
.submit:active {
position:relative;
top:2px
}
Дополнительно:
К сожалению, несмотря на центрирование набора полей, содержимое не центрируется, если установлено отображение блока согласно второму способу. Странно, так как обе скрипки выглядят великолепно.
Мне интересно, связано ли это с ее капчей?