[FONT=Verdana]I can’t center a text-box with setting margin to auto…
http://mayacove.com/dev/css/test.html
at very top is text box… beneath it is div… both have same class… how come text-box is not centered?
thank you…[/FONT]
[FONT=Verdana]I can’t center a text-box with setting margin to auto…
http://mayacove.com/dev/css/test.html
at very top is text box… beneath it is div… both have same class… how come text-box is not centered?
thank you…[/FONT]
The <div>'s are block elements, but an <input> element is an inline element; so you can add:
.fill {
display: block;
}
That doesn’t harm for elements which are already of the block-type.