After implementing this code for a menu on my website, I noticed that it is not compatible with Firefox when testing it across different browsers.
li {
display: inline-block;
list-style: none inside none;
text-align: center;
}
li a:before {
content:"";
display: block;
border-radius: 50%;
width: 62px;
height: 62px;
background: #F00;
margin: 0 auto 14px;
transition: all .2s;
}
ul.small li a:before {
-webkit-transform: scale(0.7);
-moz-transform: scale(0.7);
-ms-transform: scale(0.7);
-o-transform: scale(0.7);
background: blue;
}
ul.small-zoom li a:before {
zoom: 0.7;
background: green;
}
Upon visiting this jsfiddle link, I attempted various solutions but failed to achieve the desired result of changing the dimensions of the list item based on the a:before element due to the use of the scale() function which did not alter the li dimension.
Is there any workaround to make this work in Firefox without modifying the dimensions of the li element?