Connecting Tech Pros Worldwide Forums | Help | Site Map

Unexplainable margin

Axel Siebenwirth
Guest
 
Posts: n/a
#1: Jul 15 '08
Hi all,

at a very simple page I've encountered a problem I cannot explain.

http://projects.mooselook.de/landing_page/

Where does the empty space between the line and logo come from???

IE7 always displays the empty space.

When I change DTD to XHTML 1.0 Transitional Firefox displays it as I
expect it with the blue line right underneath the logo. No space.

I appreciate any ideas on this.

Thanks,
Axel

Andy Dingley
Guest
 
Posts: n/a
#2: Jul 15 '08

re: Unexplainable margin


On 15 Jul, 14:10, Axel Siebenwirth <a...@nospam.invalidwrote:
Quote:
Hi all,
>
at a very simple page I've encountered a problem I cannot explain.
>
http://projects.mooselook.de/landing_page/
>
Where does the empty space between the line and logo come from???

Possibly from default margins on <div>. You don't set these
explicitly.

You set
div.container {}
but not
div.container div {}


I'd personally be tempted to replace the blue rule image with a CSS
border.
Jim Moe
Guest
 
Posts: n/a
#3: Jul 15 '08

re: Unexplainable margin


On 07/15/08 06:10 am, Axel Siebenwirth wrote:
Quote:
>
at a very simple page I've encountered a problem I cannot explain.
http://projects.mooselook.de/landing_page/
Where does the empty space between the line and logo come from???
>
Try "vertical-align: bottom" for the <img>.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
dorayme
Guest
 
Posts: n/a
#4: Jul 16 '08

re: Unexplainable margin


In article <487ca1ed$0$7545$9b4e6d93@newsspool1.arcor-online.net>,
Axel Siebenwirth <axel@nospam.invalidwrote:
Quote:
Hi all,
>
at a very simple page I've encountered a problem I cannot explain.
>
http://projects.mooselook.de/landing_page/
>
Where does the empty space between the line and logo come from???
Try

img {display: block;}

--
dorayme
Closed Thread