End of Support for Joomla 3 - Forum closed

Content disappears under fixed top bar with # link

  • hpy99
  • hpy99's Avatar Topic Author
  • Visitor
  • Visitor
  • Thank you received: 0

Content disappears under fixed top bar with # link was created by hpy99

Posted 10 years 3 months ago #5549
Hi,

When I use an anchor link (#) to jump to a position on the page, the content disappears under the fixed top bar.

How can I make sure the whole image is visible when I use this link (without the need to scroll)?
Last Edit:10 years 3 months ago by hpy99
Last edit: 10 years 3 months ago by hpy99.

Please Log in or Create an account to join the conversation.

  • hpy99
  • hpy99's Avatar Topic Author
  • Visitor
  • Visitor
  • Thank you received: 0

Replied by hpy99 on topic Content disappears under fixed top bar with # link

Posted 10 years 3 months ago #5550
Found the solution with this css:

Add this to the top of the article: <span class="anker" id="name"></span>

And this to the stylesheet:

.anker{
display: block;
height: 115px;
margin-top: -115px;
visibility: hidden;
}
by hpy99

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License