Incorrect position for Html Local Links
-
Hi Weblizar!
I placed a local links in a page, such as:< a name=”KVK05″> < /a >
And when i want to go to that part of the page, with the following code:
http://afyonluoglu.org/bit-kilavuzlar/privacy/#KVK05
it is always positioned to a bit lower part of the correct place. The error amount is always same and nearly equal to the height of the theme menu. So i think it is because of the height of the menu of the theme.
So how can i corect this problem (and give an offset to localization)?
Thank you for your cooperation.
Best
Mustafa-
This topic was modified 8 years, 1 month ago by
afyonluoglu.
The page I need help with: [log in to see the link]
-
This topic was modified 8 years, 1 month ago by
-
Hello afyonluoglu,
Paste the below CSS in Custom CSS box and save –
.navbar-collapse { margin-top: 8px !important; margin-bottom: 8px !important; }Thanks.
I applied this CSS and also decreased margin to 2 px as follows:
margin-top: 2px !important;
But as you can see in the webpage (address is given above) there is still position-error. The amount of error is exactly “the height of top bar (orange in my page) + height of menubar + height of gap between menubar and page content”.
Perhaps you may want to try this situation in a test environment with enigma theme and probably you will face with same problem too.
So is there any way to give negative offset for local links to solve this problem?
Thank you for your cooperation and kind help.
Best
MustafaHii afyonluoglu,
For this, you can remove fixed menu and header.
paste the below CSS in Custom CSS box and save –
.top_fix.fd { position: static !important; }or you can also give id=”KVK05″ to h3 tag for a link to DPWP ÇALIŞMA RAPORLARI section.
Thanks.
Dear Weblizar
Thank you for your solution suggestions. The first one worked fine and now position problem removed but if i insert this CSS code to Custom Css Box, all web site is effected and in all pages, menu bar disappears while i am scrolling the page.
So is there any way to use this solution for only the specific page?
Thank you for your cooepration
MustafaHello afyonluoglu,
Menu bar disappears on all the pages, not for a specific page.
Thanks.
The topic ‘Incorrect position for Html Local Links’ is closed to new replies.
