tags:

views:

71

answers:

3
A: 

The style definition seems OK.

Do you have any other style defined for div?

Is it working on some browsers and not on others?

You can easily diagnose the problem with web-developer tool or firebug.

o.k.w
I haven't tried it on other browsers, but I've just got Firebug, so I'll diagnose the problem now.I don't have any other styles for div. There's nothing below it, either.
Tim
+2  A: 

try adding this to your page styles:

html, body, form { width:100% }
ob
That's worked! Thanks a lot.
Tim
@Tim, cool that you got your problem solved. Do accept `ob`'s answer!
o.k.w
A: 

This kind of problem often is the result of 50% width combined with 1px border. It's 50% + 1px, and therefore more than 50%.

Matrym