The "Picture" tab on my website is displaying with a 1px overflow in Firefox, creating an issue where the border lines extend past the horizontal line. However, the tab appears correctly positioned in Chrome. Upon investigation, I discovered that this inconsistency is due to browsers rendering margins differently. Despite knowing the root cause of the problem, I am unsure how to resolve it.
Below is the CSS code for the tab:
<div style="position:absolute;
margin-top:-38px;
margin-left:370px;
font-size:20px;
padding:6px;
border-left:1px solid rgb(204, 204, 204);
border-right:1px solid rgb(204, 204, 204);
border-top:1px solid rgb(204, 204, 204);
background-color:white;"></div>
For reference, here is a JSfiddle link that you can use to compare the appearance in Chrome and Firefox.