This is really more a django template / basic css question, but what you 
can do is test for forloop.first and last, and in those cases change your 
<li> to include a class="first" or class="last"

Then style the <li> first and last appropriately in css.


On Friday, June 29, 2012 8:16:54 PM UTC-5, easypie wrote:
>
> I meant the first li tag and last li tag.
>
> On Friday, June 29, 2012 2:37:59 PM UTC-7, easypie wrote:
>>
>> What's going on is I have a dozen link and sub links under {% block 
>> sidebar-categories %} that I want to style using CSS. I want to give a 
>> unique background image to the first and last tag in category_tree. For 
>> example, if forloop.first then first ul tag will get menu_top.png and 
>> menu_bottom.png for forloop.last. But how do I figure out how to do that?
>>
>> I skimmed through satchmo_category.py and other files but still confused. 
>> Something like this: http://i48.tinypic.com/v8g5ty.png
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/satchmo-users/-/Y0yy8kWxdbQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to