Prototype

Here's a little hint... If you're using Prototype in any of your projects and you want to set the "float" style you have to use the property cssFloat.

Bad:


Element.setStyle(mydiv, {float: 'left'});

GOOD:


Element.setStyle(mydiv, {cssFloat: 'left'});

I suppose this is probably true outside of prototype too..

The sticky wicket about this is that Safari seems to be the only browser that cares. Firefox and IE handle it just fine. Safari fails mysteriously.

Categories

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

What I'm Consuming

About This Post

This page contains a single entry by posted on January 31, 2006 6:24 PM.

Two haircuts down was the previous post in this blog.

Whoa is the next post in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01