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

Posts: 588
Registered: ‎05-29-2009
My Device: 9100
Accepted Solution


I have a html page and i set his background colour using:


body {
    width: device-width;
    height: 100%;


In some devices it's painted fine, but in some others, like 9900,  the background is not fully painted of this color, at the end of the page a  white stripe appears. How can i solve this?

Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Background

The web view in a WebWorks application grows to the size of the content being displayed.  If you content isn't as tall as the screen, the screen's background will paint.


The easiest solution is to set your <meta> viewport tags to have your content be the same size as the screen.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter