Re: Amaya 11.3 -- legends

Vincent Quint <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Organization INRIA
Message-ID <[email protected]>
In your example, the style element contains a rule

   legend {background:transparent;}

That's why you can see the border from the fieldset element through the 
legend box.
To avoid that, remove the background rule, or change "transparent" to 
"white".

I am not sure who is wrong here. Neither the HTML 4.01 spec nor the CSS 
2.1 spec
clearly state whether the border of a fieldset element should be visible 
or not
through a transparent legend box.

Vincent.

On 3/12/09 13:48, [email protected] wrote:
> <?xml version="1.1" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>   "http://www.w3.org/TR/xhtml11/DTD/xhtml1-strict.dtd">
> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
> <head><title>Legend Styles:[email protected]</title>
> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
> <style type="text/css">
> fieldset.r {border:2px solid maroon; margin:5px; padding:2px}
> legend {background:transparent;border:1pt solid black;
>         margin-left:10px;padding-left:4px;padding-right:4px}
> </style>
> </head><body><h1>Legend Styles:[email protected]</h1>
> <p>Amaya 11.3 leaves the border from the fieldset element inside the 
> legend
> box instead of placing the legend box <em>over</em> the top of the 
> fieldset
> box. Check the look against any mainstream browser.</p>
> <fieldset><legend class="r">My Form</legend></fieldset>
> </body></html>
> -- 
> -- 
> John Russell, [email protected]
> http://home.cogeco.ca/~ve3ll
> http://home.cogeco.ca/~trains
> http://home.cogeco.ca/~cipher
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.