Offset using anchor


#1

Hello!

As you can see in the link, I am using anchors to navigate on the same page. The problem is that it is positioned below the menu bar. Is it possible to set an offset value so that the menu bar does not cover the content?

https://kromesoft.com.es/servicios-desc/#redes

Thanks in advance!


#2

Hello there,

You could add top padding to the target element using this CSS code:

    #redes {
      padding-top: 85px;
    }

Regards,
Kharis


#3

Hi Kharis, thank for your reply, but I have increased the value to 150px and clear the cache but doesnt increase these value. Any idea?

Regards


#4

Hello there,

Try adding an !important to set highest priority.

    #redes {
      padding-top: 85px !important;
    }

Regards,
Kharis