Anchor with padding

Anchor with padding so your browser doesn’t cut off the content you’re anchoring to.


a.anchor-person {
    display: block; 
    position: relative; 
    top: -50px; 
    visibility: hidden;

The anchor:

<a class="anchor-person" id="<?php echo $sanitized; ?>"></a>
// other stuff for your anchor


Leave a Reply

Your email address will not be published. Required fields are marked *

48 − = 45