Hi, I have some problems with anchor links.
Since I have a fixed header I have adopted the solution to give some negative margin-top equal to an height of pseudo element ::before of element I have linked in anchor.
Example
Anchor link: https://lesgomines.it/una-giornata-a-les-gomines/#grid-195
.one-day #grid-195:before {
display: block;
content: " ";
margin-top: -250px;
height: 250px;
visibility: hidden;
pointer-events: none;
}
And it works veri well.
I have made the same thing in another page and the trick doesn’t work. The problem is in the page https://lesgomines.it/stanze
I have tried on first element
Anchor link: https://lesgomines.it/stanze/#blue-room
.stanze #x-content-band-4::before {
display: block;
content: " ";
margin-top: -250px;
height: 250px;
visibility: hidden;
pointer-events: none;
}
But when I click on link the target page doesn0t take care of ::before rules. I have tried to pute these rules on pseudo element of several element (external div, columns), but the results is the same: doesn’t work.
Can you help me?
Thank you very much