- This topic has 13 replies, 3 voices, and was last updated 7 years, 3 months ago by Tom.
-
AuthorPosts
-
September 9, 2017 at 1:20 pm #382436Nikola
Hello, i have a problem with “merge with site header” function on mobile and tablet devices.
Merge with site header is assumed to be a full screen, but something strange is going on mobile and tablet devices. Header is taller at height (for google chrome nav bar-i think that height of nav bar is the same height like that space) than view port of devices. I have space between div element on page header and bottom edge of page header.
When i uncheck .generate-combined-page-header {height: 100vh !important;} everything is ok, but how to delete it or disable it and to stay full screen, and of course to stay with “merge with site header” function.
With normal full screen header i dont have that problem.
This is the link for my site Link
And this is the picture of a problem
I tried everything, also i have unchecked a posibilty that problem is with a element on header.
Thanks in advance.
September 9, 2017 at 4:41 pm #382517LeoStaffCustomer SupportHi there,
I’m not seeing the problem? https://s26.postimg.org/j3wxydb0p/IMG_6345.png
Let me know if this is fixed.
September 10, 2017 at 2:32 am #382642NikolaHi Leo,
nope, the problem is still on.
:/
September 10, 2017 at 9:04 am #382783LeoStaffCustomer SupportHmm but I’m not seeing the problem. The screenshot above is from my phone.
Does it only happen on one browser? I was using iPhone 6s and Chrome.
September 10, 2017 at 9:20 am #382799NikolaI am using LG phone and Chrome.
:/
September 10, 2017 at 10:06 am #382821TomLead DeveloperLead DeveloperPerhaps you need to do something like this:
@media (max-width: 768px) { .generate-combined-page-header { height: auto !important; } }
September 10, 2017 at 10:25 am #382832NikolaNope, i tried. That broke header.
You can look, i left that line of code in css.I tried on a couple of android phones with google chrome and the problem is the same.
I did not tried with ios, Leo tried and with ios everything is ok.
:/
September 10, 2017 at 11:23 pm #383056TomLead DeveloperLead DeveloperHappening for me too on my Pixel – trouble is that it’s not happening in my browser so it’s hard to debug.
It’s like the absolute positioning isn’t referencing the true bottom of the element.
Maybe instead of
height:auto
, try a value likeheight:600px
.September 11, 2017 at 1:21 am #383073NikolaStill no,
When i put 600px, look what happen. I have a problem with a position of a div element on header, on devices with diferent resolution of screens.
When i uncheck .generate-combined-page-header {height: 100vh !important;} in google inspect element everything is ok, but how to delete it or disable it ?
And also, when i am not using merge with site header, only normal full screen header option, everything is ok, but i want this cool option of merge with site header on this website.
:/
September 11, 2017 at 12:59 pm #383427TomLead DeveloperLead DeveloperCan you add this CSS and leave it so I can inspect?:
@media (max-width: 768px) { .generate-combined-page-header { height: 600px !important; } }
September 11, 2017 at 1:01 pm #383429NikolaOk, done. You can take a look.
September 11, 2017 at 7:43 pm #383564TomLead DeveloperLead DeveloperAha.. Scrap that CSS, and try adding this:
.generate-combined-page-header { position: relative; }
September 12, 2017 at 12:05 am #383659NikolaLike every time, you found the solution.
Thank you very much guys!
🙂
September 12, 2017 at 9:47 am #384019TomLead DeveloperLead DeveloperYou’re very welcome!
-
AuthorPosts
- You must be logged in to reply to this topic.