In Chrome and Safari, the green background behind “Private Care” extends all the way to the end of the nav bar. In Firefox and Internet Explorer, it does not. I’ve been trying to adjust it so the green extends all the way to the end in all browsers, but I’m not having luck. Do you think there’s a way to do it?
At a window width greater than 1200 px, FF behaves as desired (the green background stretches to the edge of the menubar). Chrome will misbehave as the window narrows to less than 1200px, too.
This seems to be what is happening.
Thanks so much for taking a look. I’m viewing it from my laptop and my screen is larger than 1200 yet in Firefox, I see the issue. I don’t mind that it happens on the smaller screens, but the full size view should have the green tab all the way to the end.
Is there a way to make the padding on this navigation menu display the same on all browsers. It displays correctly in Chrome and Safari, but in Internet Explorer and Firefox, the green tab on the right does not extend all the way to the end of the bar. My client wants it all the way to the end in all browsers. I’m not sure it’s possible. What do you think?
Looks fine to me in latest versions of IE. Did you mean a specific version?
If you are talking about IE8 then I see you didn’t add the media query support that I posted. IE8 doesn’t understand media queries so you need a polyfill such as the link I gave.
No, I’m using IE 11 and I notice the text shifting down and then side to side. Once I’ve hovered over the links, it doesn’t happen again. It’s just happening upon page load. I’m on a Windows 7 machine if that makes a difference.
Ok I can see the slight jump on the nav in IE11 but unfortunately I can’t duplicate locally for testing as it appears to work fine locally. I think the issue is another with the custom font you are using upsetting the line-height calculations because the font is changed after everything has loaded.
The first thing I would try is to fix the line-height as exact pixels as at the moment the 1.5 equates to 22.5px and browsers can’t really handle half pixels so have too round up or down or do sub pixel anti aliasing. I would try this first:
If that has no effect then the next step would be to also change the rem top and bottom padding to fixed pixel height padding on the nav elements as rems are also rounded up and down and could also be upset when the custom font is added. It will have little detriment to the menu to change to pixel padding for that small element and is the first thing I would try.
If that doesn’t solve the issue then remove the custom font and see if that’s the trigger or not which may help in knowing where else to look if that does not solve the issue.
These are all the usual things I would do locally when trying to debug a problem but as I can’t replicate the problem locally you will have to go through this process yourself with your online version I’m afraid.
Paul, I cannot thank you enough. The custom font is definitely causing the shifting because falling back to using just Open Sans makes it work just fine. Thank you again!!