[Project_owners] how to align elements in richlistbox
joe ertaba
belaviyo at gmail.com
Tue Nov 11 03:51:21 PST 2008
Hi Neil,
Please see these three examples
#1 ; This one is original grid
<grid>
<columns >
<column flex="1"/>
<column flex="1"/>
</columns>
<rows>
<row>
<description>1</description>
<description>2</description>
</row>
</rows>
</grid>
#2 ;In this one I replaced row element only and it works like above example
<grid>
<columns >
<column flex="1"/>
<column flex="1"/>
</columns>
<rows>
<box flex="1" style="display:-moz-grid-line;">
<description>1</description>
<description>2</description>
</box>
</rows>
</grid>
#3 ;In this one I replaced rows element only and it doesnt works :(
<grid>
<columns >
<column flex="1"/>
<column flex="1"/>
</columns>
<box flex="1" style="display:-moz-grid-group;">
<row>
<description>1</description>
<description>2</description>
</row>
</box>
</grid>
Do you know why ?
On Tue, Nov 11, 2008 at 2:11 PM, Neil <neil at parkwaycc.co.uk> wrote:
> joe ertaba wrote:
>
> Is there any way to align elements in different richlistitems?
>>
>> <richlistbox>
>> <richlistitem>
>> <label value="some 1"/>
>> <label value="some 2"/>
>> </richlistitem>
>> <richlistitem>
>> <label value="something 1"/>
>> <label value="something 2"/>
>> </richlistitem>
>> </richlistbox>
>>
>> I think I should use grid element, but I cant figure out how to apply it.
>>
>
> I think you can do it with some CSS:
> .rows { display: -moz-grid-group; }
> .row { display: -moz-grid-line; }
> <grid>
> <columns><column/><column/></columns>
> <richlistbox class="rows">
> <richlistitem class="row">
> etc.
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20081111/36254bae/attachment.html>
More information about the Project_owners
mailing list