"Ian Davey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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.
And why is this not the default behavior? Would be more easy, if documents look the same in Mozilla and MSIE -- Roland M�sl http://pege.org Clear targets for a confused civilization http://BeingFound.com Web Design starts at the search engine
