Forum Moderators: not2easy

Message Too Old, No Replies

ASP textbox

Won't lose body's margin

         

collymellon

3:12 pm on Jul 14, 2005 (gmt 0)

10+ Year Member



Hope all is well.

Im dropping a ASP.net text field in my web form, but for some reason no matter what I do the text box takes the bodys margins.

Ive tried a clearing div, setting a class to the textbox, putting it in a panel etc. all with no luck.

Any suggestions?

ChadSEO

3:18 pm on Jul 14, 2005 (gmt 0)

10+ Year Member



Are you a Firefox user? If so, there is a tool available called the DOM Inspector, you can find it by going to Tools->DOM Inspector. This will allow you to look at all the CSS properties for your textbox, and see what is setting those margins. It's been a real headache-saver for me in the past.

collymellon

3:29 pm on Jul 14, 2005 (gmt 0)

10+ Year Member



thanks for response.

I have sorted this. The margins was coming from the body - a quick solution I did was to put all my content in a container(and applied the margins I had previuosly set on the body). I then cleared the margins on the body and all is okay!

Its still bugging me why?...
Does anybody know why when I drop in an ASP textbox its taking the bodys margins? ~(even though i've gave its own class etc)