SharePoint page UI Issue in Chrome

B N, Sindhu 131 Reputation points
2021-08-11T10:39:31.87+00:00

Hi,

We received a Production issue recently where top navigation bar for a SharePoint on-premise page is causing an UI issue in Chrome, while the same page works perfectly fine in IE11. In Chrome, there is small gap between two navigation bars. We tried to change the CSS by giving the below code,

/works for Chrome/
@MEDIA screen and (-webkit-min-device-pixel-ratio:0) {
.classNav{
margin-top:-2px !important;
POSITION: relative;
}
}

/works in IE 10 and above/
@MEDIA screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.classNav{
margin-top: -50px !important;
POSITION: relative;
}
}

Now after adding margin-top as -2px, it works fine in CHROME but not in IE. Should I add any other tags for it to work in both Chrome and IE?

Any help would be appreciated.

Thanks,
Sindhu

Microsoft 365 and Office SharePoint Development
0 comments No comments
{count} vote

Accepted answer
  1. B N, Sindhu 131 Reputation points
    2021-08-13T07:22:05.293+00:00

    Hi @MichaelHan-MSFT

    II was able to resolve this issue. The page was by default loading in IE7. I now changed it to IE10 & above and it works fine.

    Thanks,
    Sindhu

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,126 Reputation points
    2021-08-12T07:09:36.837+00:00

    Hi @B N, Sindhu ,

    For SharePoint on-premise site, it may not work well with chrome.

    I would suggest you use IETab extension for Google Chrome to use the IE rendering engine to display SharePoint pages better: https://chrome.google.com/webstore/detail/ie-tab/hehijbfgiekmjfkfjpbkbammjbdenadd


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.