Re: [css-d] Best way to center something in a div

2006-07-05 Thread Michael Landis
On 7/5/06, Eoin Maguire <[EMAIL PROTECTED]> wrote: > I'm trying to center a couple of select boxes within a div that has a > background image. However, I don't want everything within the div centered, > only the select elements. > > I've tried text-align: center and also setting the margin: 0 auto.

[css-d] Best way to center something in a div

2006-07-05 Thread Eoin Maguire
I'm trying to center a couple of select boxes within a div that has a background image. However, I don't want everything within the div centered, only the select elements. I've tried text-align: center and also setting the margin: 0 auto. But neither work. What's the easiest to center a specific e