Re: How can I center arbitrary content on a fixed-size button?

2009-09-03 Thread Jim Douglas
I've got a tentative solution, but it's not quite the pure css approach I was hoping for: (1) Define GWT's html-face style as: .html-face { display: table; height: 100%; margin: auto; } (2) Wrap the user's text inside: html div style=\display: table-cell;

How can I center arbitrary content on a fixed-size button?

2009-09-02 Thread Jim Douglas
I'm getting hung up on something that seems like it ought to be trivial. I've got a fixed-size GWT Button and I need to render it (preferably using just static CSS rules) such that any arbitrary text or HTML content a user throws at it is centered both horizontally (that part's easy) and