views:

24

answers:

1

Hello. I have a mobile site that works on every browser I test it with. Though on a Blackberry the entire page seems to align to the left rather than in the center.

Is there a specific way to make it align to the middle like everything else? Can you use conditionals the way you would with IE? Do I need to target the body tag instead?

At the moment it's just a simple margin: 0 auto; - Any help is appreciated. Thanks.

A: 

Try wrapping the container/content you want centered in another element with text-align set to center. E.g.

<div style="text-align:center;width:100%;"> <div id="myContent" style="width:50%;"> </div> </div>

fil maj