Page 1 of 1

CSS Styling & Background Trouble

PostPosted: Tue Mar 23, 2010 4:36 am
by TheMiede
Is there a way to get a Div to go all the way to the top left corner and be flush with the edge without setting the positioning to absolute? I tried seeing if the body's padding was affecting it but, i changed the padding to 0 and there was no difference. Any Ideas?

Re: CSS Styling & Background Trouble

PostPosted: Tue Mar 23, 2010 4:59 am
by TheMiede
Nevermind, fixed it with the margins set to 0px

Re: CSS Styling & Background Trouble

PostPosted: Sat Apr 28, 2012 2:40 pm
by visio
yes TheMiede is right. You should set to margin to 0px. if problem not solved then consult to me.

Re: CSS Styling & Background Trouble

PostPosted: Sat Apr 28, 2012 8:24 pm
by Blink
If you're using a zero value then just 0 will suffice. You can drop the px.

Perhaps consider a CSS reset if you're having problems - http://www.cssreset.com/