0

Possible Duplicate:
Default CSS values for a fieldset <legend>

Hi,

I'm having difficulty center aligning the legend text.

Here's what it looks like in browsers other than IE (which is what I want):

enter image description here

And here's what it looks like in IE (not what I want): enter image description here

How can I center align the text in IE?

Here's my code: http://jsfiddle.net/d8ZG2/2/

Thanks.

Community
  • 1
  • 1
Spencer
  • 587
  • 2
  • 11
  • 19
  • @jnpcl Is there something else I could do then? I just need to center align some text, and add a horizontal border to the left and right of it. – Spencer May 12 '11 at 23:09
  • `legend` styles are not well supported. I'd simulate a legend instead unless your design removes the style from legend completely and/or only styles them minimally. – Kevin Peno May 12 '11 at 23:15
  • I don't know if it will help but try putting `text-align:center` in the `legend{ }` css rather than in the HTML – Caleb Irie May 12 '11 at 23:15
  • @Kevin Peno I don't necessarily need to use a `legend` tag; I'm open for other suggestions/options too. All I need is to be able to center align text, and add a horizontal border to the left and right side. – Spencer May 12 '11 at 23:19

0 Answers0