Why do I have to kill mystery pixels with CSS positioning?

4 views
Skip to first unread message

Keith Purtell

unread,
Nov 1, 2011, 7:09:43 PM11/1/11
to css-d...@googlegroups.com
I'm working on a site where the last line of text (copyright etc) has to sit just above the bottom of the browser window. I've accomplished that, but not sure why I had to set the relative positioning at bottom:-20px

Unless my eyes deceive me, I zeroed out the margin and padding for body. Here's a link

http://www.keithpurtell.com/kthings/art/test.htm

- Keith

Matthew Witek

unread,
Nov 1, 2011, 7:16:31 PM11/1/11
to css-d...@googlegroups.com
You did not use a CSS reset on your file and have standard browser margins on the H6.  Set your h6 css with margin: 0px to get rid of the margins.  then you can remove bottom -20px;
--
--
You received this because you are subscribed to the "Design the Web with CSS" at Google groups.
To post: css-d...@googlegroups.com
To unsubscribe: css-design-...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages