Trying to center a span element displaying an icon with background-image inside an anchor tag is causing issues with IE versions. Looking for any tricks or solutions from experienced developers.
You can view the correctly centered version in Firefox here: https://i.sstatic.net/o3i62.png
However, the incorrectly displayed version in IE can be seen here: https://i.sstatic.net/nDPno.png
Here is the HTML code being used:
<a href="#" class="show-more"><span class="show-more-arrrow"></span></a>
Along with the associated SCSS code:
.show-more{
height: 15px;
width: 100%;
background: none repeat scroll 0 0 rgba(239, 239, 239, 1.0);
text-align: center;
padding-top: 2px;
position: absolute;
bottom: -12px;
}
.show-more-arrrow {
background-image: url(../images/arrow-submenu-large-hover.png);
background-repeat: no-repeat;
background-size: contain;
height: 10px;
position: absolute;
width: 16px;
}
The computed width of the anchor tag is 863px and the span has a width of 16px.