NikMak
I have a floating Nav bar I like to use which works really well (ok, sometimes!) especially on longer posts like this one when viewed on PC/Laptop
https://the-great-pendragon.obsidianportal.com/posts/ill-met-by-moonlight
but its awful on mobile devices
Is there some code I can add so that its not visible on phones/tablets? or can I change the 'z' axis setting so it sits behind the central text on mobiles? (FYI its already at "...z index:-100;..." in the CCS code for the Nav box)
thanks in advance for any and all help
Comments
Alternately you can setup some code for it. The CSS would essentially target whatever the class is you have assigned to your special nav menu, I will post a general example and you could always fiddle with some of the values:
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
.myNav {
display: none;
}
}
--
Alex
"Dragon Age: Requiem":https://dragon-age-requiem.obsidianportal.com/
Just trying to help out.
the nested on the web page code reduces the nav bar to a single bordered line on mobile devices as you can see here - https://the-great-pendragon.obsidianportal.com/adventure-log/bearing-a-resemblance (dont forget it only works for smart phones!) - this is an enormous improvement so thanks for that. Any ideas on how to make it vanish completely?
the CCS you provided didnt work very well for me: it only worked on the 'Navmenue' itself, and not on the buttons nested within it (they are roll over buttons located in the Navmenue space on each page)
I will wait a few days to see if any one suggests a way to make the Nav menu 100% invisible for mobiles, and if not begin the process of shrinking it to a single line and be grateful for the 99% victory :)
Home
Inquisito
Groups
Families
I did some sneaky browser magic to test this on your site and it worked like a charm.
if I put the the nested divs in this order
that also works :)
is there any reason to use one method over the other? I know that (several years ago now) I have had issues with different code order and even text being necssary for different devices
--
Alex
"Dragon Age: Requiem":https://dragon-age-requiem.obsidianportal.com/