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: 16
Registered: ‎10-07-2010
My Device: Not Specified

div elements not showing up



I've been working with styling and adding functionality to my widget.


I can't get the div elements to behave the same way as they do on browsers, I am not sure why?



<style type="text/css">
.photo { width: 70px; height: 70px; border: 2px solid #666; background-color: #ccc; display: block; float: left; margin: 5px; }



am I not doing something right?


Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: div elements not showing up

Hi tpae,


Its not entirely clear what the issue is - would you please provide the following info?



  1. Can you post a snippet of the DIV element(s) and surrounding HTML you are trying to apply this style to?
  2. Are you running your application on BlackBerry Device Software 5.0 or BlackBerry 6?
  3. Which browser(s) are you comparing against?
  4. Can you post  screenshots of expected and actual results?


Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.