Why do container widths render as different sizes in Chrome and Firefox? Image sample. Chrome: Render width is 681.273
FireFox: Render width is 685.8499
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Open the following links in both browsers and you will see the differences.
This is a jsfiddle
Is there a way to render with the same width in both browsers?
P粉6499901632024-04-01 09:11:01
Using css reset
: css reset is a set of styles that removes the browser's default style, What is css reset.
Use CSS vendor prefixes: They are prefixes for css properties that are used to make css properties support this browser, CSS vendor prefixes