Previous Message
Next Message

Absolute-positioned LEGEND element in Firefox

Sent by Rafael on 27 February 2006 04:04


Hi,
	this mail is just for futher (personal) reference.  I've tried to 
change the style of a LEGEND tag and failed so far; what I'm trying to 
do is to make it look as a tipical "title-bar", something like this:
   +-------------------------+
   | LEGEND element          |
   +-------------------------+
   | Rest of the content...  |
   | (All inside a FIELDSET) |
   +-------------------------+
but Fx doesn't allow me to, both Opera and IE6/win work fine (if that 
can be applied to IE6/win)

HTML:
   <fieldset>
     <legend>LEGEND element</legend>
     [this doesn't matter...]<br />
   </fieldset>

CSS:
   FIELDSET {
     position: relative;
   }
   LEGEND {
     position: absolute;
     top:      20px;
   }
or
   FIELDSET {
     position: relative;
   }
   LEGEND {
     position:   absolute;
     margin-top: 20px;
   }

	Any comments on this behaviour?
	Thanks in advance.

Note: This is only for positioning, no size or any other value has been 
given (to mantain HTML/CSS codes as clean as possible)
-- 
Atentamente,
J. Rafael Salazar Magaña
Innox - Innovación Inteligente
Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE
[EMAIL-REMOVED]
http://www.innox.com.mx

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: