Will this work for you?
living example
jsFiddle
I added top additions to the anchors:
CSS
a.anchor{ background-color:pink; padding-top:30px; display:block; margin-top:-30px; }
HTML
<a href="#section1">section1</a><br> <a href="#section2">section2</a><br> <a href="#section3">section3</a><br> <a href="#section4">section4</a><br> .... <a name="section1" class="anchor">section1</a> etc
EDIT
After reading your question again, if the problem is that you are using a bootstrap with an attached navigation bar, and part of the contents of your page is hidden under the navigation bar, an even simpler solution is to add indents to the upper part of the page body to move the page content below.
If you need to do this on every page of the site, use:
CSS
body { padding-top:40px; }
If you only need to clear the navigation bar on the selected pages, add the class to the body tag on the malicious pages and specify only those specific pages, for example, HTML
<body class="welcome"> ....
CSS
body.welcome { padding-top:40px; }
source share