Jason Hummel wrote:
> While not directly related to prototype/s.a.u. I thought this would be
> the best place to pose this question. I apologize, if it's off topic.
>
> I'm working on an interface where I have a bunch of list items floated
> to the left in a horizontal fashion. The list is inside a absolutely
> positioned div, with an overflow set to hidden.
>
>  At one point in my script I have to remove the first list item, but I
> don't want the rest of the list items to collapse to the left. Within
> my script I have something like:
>
> this.ul.removeChild(li[0]);
> this.ul.style.left = '100px';

Why not just set its visibility property to 'hidden'?  The element
isn't removed, but why do you want to do that anyway if you don't want
the document to re-flow?


[...]
> I use Thomas's reflector script at
> http://mir.aculo.us/stuff/reflector/reflector.html to put a reflection
> on each image.

That's a pretty effect, but very wasteful of browser resources.  It is
vastly more efficient to create the reflected images in an image
processing program - and you'll get much better support from browsers
that don't support opacity settings.


-- 
Rob


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to