Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Raposo
Posts: 19
Registered: ‎07-22-2008
My Device: Not Specified

Change style font-size to input and textarea

I am developing a web form for people with visual impairments. And I need the input and textarea elements, change their size when they receive focus.


I tried with javascript:

document.getElementById (objName). style = "font-size: 5em; (but not working)


I tried with CSS (unsuccessfully)

input: focus, textarea: focus (
     font-size: 2.3em;
     background: # 66FFFF;
)

I tested this development in a BB 8800 and does not apply any modification to the original style. I have also used a Storm, and resize the box, but not the font size.

Can you help?

Thanks

Please use plain text.