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

New Developer
Posts: 2
Registered: ‎11-25-2008
My Device: Not Specified

CSS / float

I'm new to BlackBerry browser development - is it possible to use the CSS "float" property for a div? The documentation seems to suggest so, but I can't seem to make a simple example work:





    <link rel="stylesheet" type="text/css" media="handheld" href="handheld.css"/>



    <div class="header">

      <div class="right">Right</div>






Here's the CSS:


header {border: green dashed 2px;}

.right {float: right; width: 100px;}

.center {width: 100px;}


Any ideas? 

Posts: 107
Registered: ‎09-25-2008
My Device: Not Specified

Re: CSS / float

If you are testing on 4.6+, use media="screen" instead of media="handheld"; handheld stylesheets may not be picked up.
New Developer
Posts: 4
Registered: ‎07-25-2008
My Device: Not Specified

Re: CSS / float


Did you ever manage to solve this problem? Im facing the same issue, tested on Blackberries such as 8300