After trying numerous solutions on stackoverflow, I have yet to find one that works for me.
a.buttongc {
border-radius: 5px;
background: #f5b220;
color: #fff;
font-size: 17px;
height: 44px;
line-height: 42px;
color: #fff;
text-decoration: none;
text-align: center;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
appearance: none;
white-space: nowrap;
margin: 10px;
text-overflow: ellipsis;
font-family: inherit;
cursor: pointer;
width: 100%;
overflow: hidden;
display: block;
}
.gc-button-center {
position: fixed;
left: 0;
right: 0;
display: block;
width: 100%;
bottom: 50px;
z-index: 999999999;
}
<div class="gc-button-center">
<a href="#" class="buttongc startgc">test</a>
</div>
https://i.sstatic.net/1zOQI.png
The issue I'm facing is with setting margins that are only affecting the left side and causing the button to extend over the scrollbar. Any ideas for a solution?