CSS Float using Prototype Element.setStyle

In a normal CSS world, we usually use float:right or float:left to float any element. But it’s different in Prototype world, we have to use cssFloat:'right' or cssFloat:'left'.

2 Comments

sergey

Oh! At long last! I found the solution. Thanks

Moisés Márquez

Con las últimas versiones tan solo hay que poner la palabra float entre comillas.

Element.setStyle ({’float’:'left’})

Leave a Comment

(required)
(will not be published) (required)