Can't center text box

[FONT=Verdana]I can’t center a text-box with setting margin to auto…

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. :slight_smile: