Tagged: sticky header, tablets
Hi, I searched the forums & tried various CSS edits but could not find a way to do this tweak.
STICKY HEADER / Phones & Tablets
1. In “Portrait Mode” I would like to display the full Sticky Header.
2. In “Landscape Mode” I would like to display ONLY the “Header Secondary Menu”.
Is there a way to do this via CSS?
Many thanks!
Gary
Hey garycedar!
There is no way to my knowledge to check if a phone is in portrait or landscape mode. The screen sizes are different for portrait and landscape so you can check that but every phone has a different size screen.
You could use some CSS like this.
@media only screen and (min-width: 768px) and (max-width: 959px) {
#header_main { display: none !important; }
#main { padding-top: 30px !important; }
}
To target only certain screen sizes but whether your mobile device falls in between those ranges I do not know.
Best regards,
Elliott