I’m building a responsive personal website and I’ve encountered a weird problem. I created a menu for my website. Since its homepage and content pages have different CSS files, I put the same menu code into both CSSs. It works and looks same on my pc browsers (Firefox and Chrome) but when it comes to mobile browser the font-size changes even if they are same in the code.
This is what the homepage menu looks like on pc browser:
![1
And this is the inner menu, also on pc. They are identical:
![2
This is what the homepage menu looks like on mobile. (iPhone Safari) This is the expected result:
![3
However my content pages’ menu looks like this and it’s not user friendly:
![4
As far as I tested I believe the problem occurs on Safari. I also tried Mobile Firefox Browser and it looked decent. I don’t have a clue about Android browsers though.
By the way this is the menu list styling code part of my two CSS files. Entire code is in `vw`%
`.menu-pane li {
padding-top: 1.8vw;
padding-bottom: 0.1vw;
margin-left: 1vw;
font-size: 80%;
font-family: ‘Josefin Sans’, sans-serif;
}
How can I solve this problem?
Thank you in advance.