That would probably not work because the child at the end of each row is not 
necessarily the last child in the 'containing object'.

The container is the category which has n products eg.,

P1 P2 P3 P4 P5 P6 P7 P8

Where P8 would be the last child

But I need P3 and P6 to be marked as 'last cell'.



>-----Original Message-----
>From: Anh [mailto:7za...@gmail.com]
>Sent: Wednesday, 14 July 2010 1:19 PM
>To: users@wicket.apache.org
>Subject: Re: Multiple columns using <div> with last one on each row
>different
>
>Not familiar with the blueprint framework, but is there some reason
>you could not use
>
>whatever:last-child {
>
>}
>
>CSS pseudo-selector?
>
>On Tue, Jul 13, 2010 at 7:16 PM, Chris Colman
><chr...@stepaheadsoftware.com> wrote:
>> I'm using wicket to generate HTML and Compass/Blueprint to manage the
>> CSS.
>>
>> I have a multi column layout with a product in each cell like:
>>
>>
>> P1   P2   P3
>> P4   P5   P6
>> P7
>>
>> Etc.,
>>
>> With the blueprint CSS framework you need to specify a slightly
>> different CSS 'class' (eg., "lastCell") for the last item in each row
>> and that uses different CSS that does not append an extra 'space' in the
>> grid as it does for the previous cells in that row.
>>
>> I know that I can use
>>
>>        new SimpleAttributeModifier("class", "lastCell"));
>>
>> when populating the list view but to do that I need to know how many
>> cells will appear in each row. What if I didn't want to hard code that
>> and leave it up to the markup to decide. Is there any wicket markup
>> trick that I can use to tell wicket to insert a special 'class' value
>> into the 'last cell' on each row?
>>
>>>-----Original Message-----
>>>From: Francisco Diaz Trepat - gmail
>> [mailto:francisco.diaztre...@gmail.com]
>>>Sent: Wednesday, 14 July 2010 6:13 AM
>>>To: Wicket-Users
>>>Subject: Any Italian wicket maniacs out there?
>>>
>>>Hi, I would like to ask some Italian users about something personal.
>>>
>>>If any, and don't mind please contact me privately. I'll surely
>> appreciate
>>>it.
>>>
>>>regards,
>>>
>>>f(t)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to