Repeat will just cycle through each element of a collection and render
the interior of the block (view if no text given) with no extra
wrapping tags.  Your collection you probably want to have a class or
id defined so you can change your css for the collection to use
something like .css-class-name li { display: inline } that or you
might be able to do it with float but that's probably another can of
worms if you're not familiar with css.

On Jul 8, 12:51 pm, hobo_hippy <[email protected]> wrote:
> This has been mentioned before, but I've had no luck trying the
> previously mentioned solutions. I posted a topic called CSS help, but
> I think that title scared people away. Anyways...
>
> I have a collection of users, and using the paperclip plugin and a
> modified card for User, the collection displays a user picture and
> their name below the picture. No matter what I do to the CSS, I can't
> get the user pictures to display horizontally, that is, I can't get
> them to list next to each other instead of on the next vertical
> section of space. There was mention of using repeat instead of
> collection in a previous discussion, and I'd like to explore that. If
> I'm straight up redefining the index-page tag in application.css,
> what's the right way to call repeat instead of collection? I already
> tried just swapping out <collection param/> for <repeat param/> but
> that just leave me with an empty list - nothing shows ;(
>
> here's my def
>
> <def tag="index-page" for="User">
>   <page merge title="Users">
>     <body: class="index-page user" param/>
>     <content: param>
>       <header param="content-header">
>         <h2 param="heading">Users</h2>
>         <p param="count" if>There <count prefix="are"/></p>
>       </header>
>       <section param="content-body">
> <!--      <a action="new" to="&model" param="new-link"/> -->
>         <page-nav param="top-page-nav"/>
>         <collection param/>
>         <page-nav param="bottom-page-nav"/>
>       </section>
>     </content:>
>   </page>
> </def>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to