incomprehensible gap above and below DIV

5 views
Skip to first unread message

zalel

unread,
May 22, 2012, 7:16:18 PM5/22/12
to Design the Web with CSS
This page has a gap I don't understand. http://roxburyyouthworks.org/index_052112.html

In the DIV with the dark grey background, called #homemovie, there is
a space at the top of the div where the color is incorrect. It should
be #666, but instead it's lighter. There is no padding nor margin in
the CSS above or below, so why is this happening?

NO matter how I experiment, the space remains. Can anyone see where my
error is?

Thanks,
Nicky

Bazinga Designs

unread,
May 22, 2012, 7:31:24 PM5/22/12
to css-d...@googlegroups.com
it's because the H1 element has margin-top, set margin-top to 0px and
it will be fine

2012/5/23 zalel <nmcc...@gmail.com>:
> --
> --
> 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



--
BAZINGA Designs - strony internetowe
http://www.bazingadesigns.com

Igor Wnuk
Ul. PCK 5/20
24-100 Puławy

tel. +48 667 200 706
tel. +48 722 188 134

REGON: 060622686
NIP: 716-255-43-47
Reply all
Reply to author
Forward
0 new messages