20 Jul 2006

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'.

Comments RSS feed

2 Comments

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

    Reply

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

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

    Reply

Leave a Reply

You can use these tags: <a href="" title=""> <ol> <ul> <li> <strong> <em> <pre> <code> <blockquote cite="">