Solution 1 :

If you set a custom class for this h3

<h3 class="TEST jump" id="TEST">TEST</h3>

then you could add CSS like so:

.jump {
    display: block;
    position: relative;
    top: -250px;
    visibility: hidden;

Problem :

is there any way to scroll above an element?
I mean, the following “H3” tag for example:

<h3 class="TEST" id="TEST">TEST</h3>

I would like to jump a little above this “TEST” element using HREF:

<a href="#TEST">

like 5px above. is there any way to do it?


Comment posted by Link to a section of a webpage

Does this answer your question?

Comment posted by Paul9002

@Abhishek Thanks, but I have already done an HREF and it works fine, I need to jump a little bit above this element.

Comment posted by……