Roland M�sl wrote:

>>div h1 {margin: 0 0 0.5em 0}
>>
>>Which will set all margins to 0 apart from the bottom one,
>>
>
>But I do now want this.
>I want exactly the behavior of MSIE
>
>if in the middle of a block than make top margin
>else                                        make no top margin
>
Then change it to this:
div h1:first-child {margin: 0 0 0.5em 0}

And it'll only apply to the h1 at the top of a div.

ian.


Reply via email to