Bug with CSS for textfield

  • I used the textfield plugin, and the krpanoJS deals with the CSS parameter slightly differently than the Flash version, which means I had to use 2 different versions.

    In Flash, you specify the selector as well as the rules, e.g.

    Code
    css=" p { font-family: Trebuchet MS,Helvetica, Arial, Sans-serif; font-size: 18px; color: #ffffff;  } "


    which allows you to set styles on different elements, e.g. links

    In the JS version, the code is applied within an inline style to the text field so the above code fails - you have to provide

    Code
    css=" font-family: Trebuchet MS,Helvetica, Arial, Sans-serif; font-size: 18px; color: #ffffff;  "


    Just in case anyone else has similar problems. Maybe it could be improved in future versions to bring the two in line?

  • Perhaps it could be resolved more easily by allowing you to apply a CSS class or ID to the textfield HTML (maybe based on plugin name?) - that way detailed styling could be applied, with it defined in the HTML container or external CSS file.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!