GWT CellList custom template for Cell Items

2011-03-25 Thread Zed
By default CellList items rendered as column. I want to add float:Left style to each item. I want them to display as a row. But every my element in CellList is wrapped by CellList div. So I want to customize that div style template. Is it possible? I found in CellList.class sources interface :

Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Thomas Broyer
Override the CellList styles (pass an overridden CellList.Resource to the constructor) to add the appropriate CSS properties to cellListEvenItem and cellListOddItem. I'd recommend using display:inline-block instead of float:left though; have a look at the

Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Jeff Larsen
or just use CommonResources.getInlineBlockStyle(); Out of curiosity, why do you recommend display:inline-block instead of float:left? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Thomas Broyer
On Friday, March 25, 2011 4:22:06 PM UTC+1, Jeff Larsen wrote: Out of curiosity, why do you recommend display:inline-block instead of float:left? Compare the first 2 screenshots in http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/ -- You received this message because

Re: GWT CellList custom template for Cell Items

2011-03-25 Thread Zed
Thanks it works now. I'm happy. On 25 мар, 18:07, Thomas Broyer t.bro...@gmail.com wrote: Override the CellList styles (pass an overridden CellList.Resource to the constructor) to add the appropriate CSS properties to cellListEvenItem and cellListOddItem. I'd recommend using