I know there are a lot of FF / Chrome CSS issues, but I cannot find this exact one.
Here is a JS script showing the problem: http://jsfiddle.net/ajkochanowicz/G5rdD/1/
(Apologies for the long CSS, this was copied from the site.)
Essentially, Firefox and Chrome give me two different values ββfor the largest button width: 4 and 6. I would like it to be 4 or less for both. What causes this?
You did not specify width except auto .
width
auto
Different rendering engines have different perceptions of how websites should be displayed.
How to change width to 4px and :hover for everything you want?
4px
:hover
Try adding css below. Firefox adds an extra addition to the button.
input::-moz-focus-inner, button::-moz-focus-inner { padding: 0; border: 0; }
Related: Remove extra spaces / additions in Firefox .
Source: http://wtfhtmlcss.com/#buttons-firefox-outline
Source: https://habr.com/ru/post/1397643/More articles:Huge peak of memory - CGContextDrawImage - memory-managementIs a memory leak or garbage collection to fix it - performanceTFS2010 default build template breakdown - build-processIs it safe to install __new__ on Django model classes? - pythonCan I use SpecFlow functions between steps? - c #Do universal apps mean the download size is larger than what is needed for iPhone and iPod? - iosServer connector on Windows Phone - windows-phoneView nested private function definitions in PowerShell - functioncompute conditional funds based on only one column in R - rConverting a SQL Server CE 4 database to SQL Server 2008 Express without editing Visual Studio Pro - sql-server-2008All Articles