How come I can't set the display or width with css on the legend tag?
I have a form with fieldsets and legends and I don't want the special appearance of the legend tag - I want it to simply act like a standard block element.
Setting width works in Safari, but not in Opera and Firefox. I'm not sure about IE(pc) yet because I use mac.
Cannot style legend tag with css
-
- Posts: 23
- Joined: February 12th, 2003, 2:55 am
- Location: Sweden
- Contact:
- jscher2000
- Posts: 11772
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
- jqp
- Posts: 5070
- Joined: November 17th, 2004, 10:56 am
- Location: In a box
- Contact:
- jscher2000
- Posts: 11772
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
-
- Posts: 23
- Joined: February 12th, 2003, 2:55 am
- Location: Sweden
- Contact:
Solved it
Thanks all for the responses,
Btw, I solved it by setting display:block, float:left and width:100%. Float made it work, not sure why
Best regards, Lukas
Btw, I solved it by setting display:block, float:left and width:100%. Float made it work, not sure why
Best regards, Lukas