On 15/11/2007, Graham, Steve <[EMAIL PROTECTED]> wrote:
>
> My question for you is this. I'm trying to figure out a way to
> automatically center a submit button in a table cell. I can style the
> button just fine, but I've not found a good way to center it.
>
>

Aside from the obvious solution of applying text-align:center to the table
cell (I'm guessing that the cell also contains other things that you don't
want centred?), the easiest way would be to wrap it in some sort of block
level element and apply text-align:center to that. Since I don't know the
structure of your HTML I'm not sure what would be the most appropriate, but
a <p> or even just a plain old <div> would do if you don't already have your
form elements in a list or something.

Cheers,

Seona.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to