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
biomed
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:

 

<html>

  <head>

    <title>Title</title>

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

  </head>

  <body>

    <div class="header">

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

      Left

    </div>

  </body>

</html>

 

Here's the CSS:

 

header {border: green dashed 2px;}

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

.center {width: 100px;}

 

Any ideas? 

Please use plain text.
Developer
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.
Please use plain text.
New Developer
olafdunn
Posts: 4
Registered: ‎07-25-2008
My Device: Not Specified

Re: CSS / float

Hi,

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

 

Thanks

Please use plain text.