CSS Styling & Background Trouble

Show off new creations, get help, or just chat about all aspects of web development and design.

CSS Styling & Background Trouble

Postby TheMiede on Tue Mar 23, 2010 4:36 am

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?
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Re: CSS Styling & Background Trouble

Postby TheMiede on Tue Mar 23, 2010 4:59 am

Nevermind, fixed it with the margins set to 0px
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Re: CSS Styling & Background Trouble

Postby visio on Sat Apr 28, 2012 2:40 pm

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

Re: CSS Styling & Background Trouble

Postby Blink on Sat Apr 28, 2012 8:24 pm

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/
User avatar
Blink
Cool 'n that
Cool 'n that
 
Joined: Fri Oct 08, 2004 4:16 pm
Location: UK

Return to Web Design & Development

Who is online

Users browsing this forum: No registered users

cron