Navigation menu component on chrome

Chrome add an extra space above the navigation. This will cause any other sizing appear incorrectly. navigation menu created space with the following tags - before navigation div:

There are 2 solution :
1. We can set as display none for them using the following style :

2. But using display none is not recomended since we still don't know why create the space. Instead, we can use the following style :

It works fine now, without any extra space on chrome.

No comments:

Post a Comment