SyntaxFix
Write A Post
Hire A Developer
Questions
I found this solution:
<a name="myanchor"> <h1 style="padding-top: 40px; margin-top: -40px;">My anchor</h1> </a>
This doesn't create any gap in the content and anchor links works really nice.