I am having an issue in Firefox where the tags have a border that sticks out past the containing div despite no border being set.
Screenshot in other browsers and what it should look like:
and in Firefox:
Single file with code:
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css" rel="stylesheet">
<div class="sticky-links">
<ul>
<li>
<div class="unskew">
<a href='www.theonion.com'>
<i class="fa fa-rss" aria-hidden="true"></i>
The Onion
</a>
</div>
</li>
<li>
<div class="unskew">
<a href='http://www.google.com'>
<i class="fa fa-google-plus" aria-hidden="true"></i>
Google
</a>
</div>
</li>
<li>
<div class="unskew">
<a href='asfd'>
<i class="fa fa-facebook" aria-hidden="true"></i>
some text
</a>
</div>
</li>
</ul>
</div>
<style>
.sticky-links ul{
position: fixed;
right: -15px;
top: 50%;
z-index: 999;
}
.sticky-links li{
/*border: 1px solid black;*/
text-transform: uppercase;
/*transition-duration: 0.2s;*/
background-color: black;
transform: skew(20deg);
-webkit-transform: skew(20deg);
-moz-transform: skew(20deg);
-o-transform: skew(20deg);
padding: 5px;
padding-right: 15px;
list-style: none;
margin-bottom: 10px;
}
.sticky-links li:hover{
background-color: #f60;
}
.sticky-links li div a{
padding: 5px;
text-transform: uppercase;
/*transition-duration: 0.2s;*/
background-color: black;
font-size: 1.75rem;
color: white;
text-decoration: none;
}
.unskew{
transform: skew(-20deg);
-webkit-transform: skew(-20deg);
-moz-transform: skew(-20deg);
-o-transform: skew(-20deg);
}
/*font awesome icon padding */
.unskew a i{
padding-right: 5px;
}
</style>
<script>
$('.sticky-links li').hover(
//mouse enter
function(){
$(this).find('*').css('background-color', '#f60');
},
//mouse leave
function(){
$(this).find('*').css('background-color', '#000');
}
);
</script>
and a jsfiddle with the relevant code:
https://jsfiddle.net/cyetuh82/2/
The page can be inspected and we see it is in fact the inner causing this.
I've tried quite a few css changes such as setting border: none !important on all elements, clear: both etc.
Note: the jsfiddle doesn't quite look the same, but you can still see some sticking out from the divs which I believe will have the same underlying cause.
Thanks,
Kalen
Edit:
The jsfiddle appears to not be capturing the root issue it is a problem with the a nested inside everything hanging out (can be seen when I inspect element on the page)