body {
display: grid;
display: -ms-grid;
background-color: #eaf6e5;
grid-row-gap: 5px;
grid-template:
"header header header" auto
"nav nav nav" auto
"main main gap1" 1em
"main main werb" 11em
"main main gap2" 3em
"main main info" 1fr
"footer footer footer" auto / 8% 64% 28%;
-ms-grid-columns: 8% 64% 28%;
-ms-grid-gap: 5px;
}
but how the screenshot to show Edge display different margin…in Firefox and Chrome Gut, only the Problem is on Edge…the advertising is from google I have it without div, how to show it,
In every browser, every element that has not been styled are given default value for sizing, margin, padding etc. However, every browser has their own set of values for every element and therefore are not the same. Hence, it looks different in every browser.
To solve this is to do a CSS reset. This is like a set of CSS rules to reset all elements’ margins and paddings to 0, then when you apply padding or margin to an element, it will look the same in every browser. Check this article for further information
What @Madalena.design is mentioning is a reset of all margin and padding before ever setting it on an element. So you can put it back the way it was and add
* {
margin: 0;
padding: 0;
box-sizing: border-box; /* I do this for all my projects */
}
Make sure to add it to the top of the CSS file, this will set all the margin and padding to 0 for all browsers and should correct the problem.