views:

1531

answers:

5
+3  A: 

The CSS validator is your friend.

http://jigsaw.w3.org/css-validator/validator?text=a{padding%3A45%3B}&profile=css21&usermedium=all&type=none&warning=1&lang=en

45 what? Hippos? For lengths (other than 0) units are required.

padding: 45mm;
padding: 45%;
padding: 45pt;
padding: 45px;

and so on.

David Dorward
For some reason the link syntax isn't working, so I've just pasted the URL directly.
David Dorward
Sorry for bothering, I updated my question.
Shimmy
A: 

Remove the div and give a "0px 45px" margin to the FormView.

Alsciende
I would do that if FormView would of had a property Margin, but it ain't and I want the style to be inline.
Shimmy
A: 

You must have a width set on some element inside the <div style="padding:0 45px">. Reduce the width by 90px because that space is now taken up by the padding.

Emily
can you please show me a brief example, i didn't getcha
Shimmy
A: 

Well I solved my issue in quite a different way.

I set the FormView's Width to 80% and I wrapped it with a center Html tag.

<center>
    <FormView Width="80%" runat="server" />
</center>
Shimmy