"Karsten" <> wrote:
>The following html file is not displayed properly on Safari:
Or Opera or Firefox...
>http://userpage.fu-berlin.de/~kweinert/viki_conv.html
>
>The divs are spaced vertically, but they should not. In IE, it looks
>good. What am I doing wrong?
Assuming that IE is correct.

IE is in fact applying your styles incorrectly.
The margins on the <h1> will collapse with the margins on the <div>
that contains the <h1>. Hence the margins of the <h1> will appear
outside of the <div> thus creating the spacing you see.
See
http://www.w3.org/TR/CSS21/box.html#x25 for the details.
How to prevent it?
Set either padding or border on the <div> to a non-zero value.
Or, set the margins of the <h1> to zero and set padding instead (not
always an option but will work in your case).
>(Also strange is the hover effect on the headings. If you move the
> mouse over a heading, it changes its color like a link. In Safari, not
>in IE. Why is that?)
<h3><a name="Wie-es-funktioniert">Wie es funktioniert</a></h3>
a:hover { background:transparent; color: Red; }
You have an <a> element and you have a style for a:hover, why
shouldn't it be applied? Again IE is showing its failings - it only
supports :hover on links.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <> <http://steve.pugh.net/>