PDA

View Full Version : HTML Help - Fieldset & Legend


Darat
16th January 2006, 07:13 AM
Is there anyway of using fiedset and legend so that the legend appears at the bottom right of the enclosing border e.g:



*--Standard Legend--------------------------*
|
|
|
*--------------------------Where I want it--*

Perforatu
16th January 2006, 07:37 AM
It appears the official W3C specs won't allow for positioning of the legend element. You could try your luck with the deprecated "align" property, but it doesn't seem to work in Firefox and it only takes care of horizontal alignment.

The only other option I can think of is to "fake" it using a "div" element and some relative positioning. :(

Darat
16th January 2006, 07:45 AM
It appears the official W3C specs won't allow for positioning of the legend element. You could try your luck with the deprecated "align" property, but it doesn't seem to work in Firefox and it only takes care of horizontal alignment.

The only other option I can think of is to "fake" it using a "div" element and some relative positioning. :(

Thanks and it doesn't work in Opera so that's out. Deprecated indeed!

kevin
16th January 2006, 09:04 AM
according to HTML help there is an ALIGN option that I think sets this.

http://www.htmlhelp.com/reference/html40/forms/legend.html

But they also say ALIGN is deprecated with no alternative in CSS for it.