If I have a non-scrolling header in an HTML page, fixed to the top, having a defined height:
Is there a way to use the URL anchor (the #fragment part) t
#fragment
The way that I find being the cleanest is the following one :
#bar::before { display: block; content: " "; margin-top: -150px; height: 150px; visibility: hidden; pointer-events: none; }