Map is layered above and covers top header when scrolling

Phoca Maps - displaying maps in Joomla! CMS
ProfGerdes
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Apr 2022, 22:35

Map is layered above and covers top header when scrolling

Post by ProfGerdes »

I have a map inserted in the middle of an Article. When I scroll the article down, the text in the article goes under my top heading, but the map goes over and on top of the heading. I am using the plugin, with the code being
{phocamaps view=map|id=1}

How can I get the map to slide under the top heading?

Tags:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9112
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Map is layered above and covers top header when scrolling

Post by Benno »

Hi,
we need more informations:
Which Joomla! version?
Which Phoca Maps & Phoca Maps Plugin version?
Which frontend template?
Which PHP version?
If possible the URL?

Kind regards,
Benno
ProfGerdes
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Apr 2022, 22:35

Re: Map is layered above and covers top header when scrolling

Post by ProfGerdes »

Joomla: 4.1.0
Poca Maps Plugin: 4.0 Beta
Frontend Tamplate: Cassiopeia
PHP version: 8.13
URL: https://uofsc-efmp-prototype-website.cl ... ft-jackson
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9112
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Map is layered above and covers top header when scrolling

Post by Benno »

Hi,
create a user.css file and copy & paste this code:

Code: Select all

.table > :not(caption) > * > * {
    position: sticky;
}
Be aware: I have tested only with pc, not with mobile screens.

See image:
Image

Kind regards,
Benno
ProfGerdes
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Apr 2022, 22:35

Re: Map is layered above and covers top header when scrolling

Post by ProfGerdes »

I tried this and it did not help. I looked at the HTML, and I could not find a table class, but it appears there is a phocamap class. I changed the referenced code to (not removed the modifiers on the class selector)

.phocamaps {
position: sticky;
}

and this worked. If I left in the modifiers it did not.

So my issue is resolved. Thanks.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9112
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Map is layered above and covers top header when scrolling

Post by Benno »

Ok.

Kind regards,
Benno
Post Reply