Site logo

Archived topic

Internal Link

5 replies · Started by afuente26 on July 13, 2021

Viewing posts 1–6 of 6

Hello again,

I have a recurrent issue.

When I insert an internal link in the menu, to another point inside the page, the link brings me to the point I need, but the menu is above.

Any idea?

Thanks
Angel

Thanks a lot. The video is very good explained.

I´ve done already what the video says, but I have still the same problem.

First, I have to add

html {
scroll-behavior: smooth !important;
}

to the css, otherwise, it doesn´t work. Ok. Thanks not really bad.

Second, and this is what I don´t like, is that the linked text (or whatever) stays UNDER the menu, not behind it.

You can try yourself to see what I meen...

Thanks again..
Angel

Thanks a lot Elvin,

finally, I´ve found an easy and quick solution, that I want to share.

:target:before {
content: "";
display: block;
height: 100px;
margin: -100px 0 0;
}

@media (max-width: 768px) {
:target:before {
content: "";
display: block;
height: 60px;
margin: -50px 0 0;
}
}

Thanks a lot again. I´m really glad with your template and your support.

Greetings
Angel

Nice one! Thanks for sharing. Glad you got it sorted. :D

This archived topic is closed to new replies.