Lionel Barth wrote:
> 
> I have difficulties to use the border property on a cell generated content.
> 
> I try to insert borders on cells this way:
> 
> facilities {
>    display: table;
>    content: rows(
>                row(
>                        cell("baby care : ", border, 1 solid red),
>                        cell(check-box(attribute,
> "BabyCare",checked-value, "yes",unchecked-value, "no"))
> 
>                        cell("children playground : ", border, 1 solid red),
>                        cell(check-box(attribute,
> "ChildrenPlayground",checked-value, "yes",unchecked-value, "no")),
>                    )
>    and so on...
>                );
> }
> 
> I have no red border on first and third cells.
> What did I miss ?

Not much. The solution to your problem is very easy.

Shorthand properties like "border, 1 solid red" are not supported in
pseudo-functions like cell(), row().

You need to specify the border by specifying its components:
"border-width,1,border-style,solid,border-color,red".

(This is documented here:
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/objects.html)

Reply via email to