Forum How do I...?

Is there a CSS way to remove top margin of <h1> at the top of a page?


I'm wondering if there is a CSS way to remove the top margin of an <h1> element (or any other element) that is placed at the top of a new page. Such margin is desired when the tag is in the middle of the page, but not when at top.

Thanks & regards.
The top margin should collapse with the page margin, unless the page has border or padding.
Thanks! It was the border. I was working in "debug mode" (with all boxes having border). Now works fine.

Thanks again and regards.