My attempt to align CSS elements to the right using margin-right: 200px
is not working, while margin-left: 200px
does. This issue arises even though my CSS file appears as follows:
.wrapper {
display: inline-block;
position: absolute;
top: 50%;
left: 50%;
width: 200px;
margin-right: 200px;
}
.btc {
font-family: 'Open Sans', sans-serif;
padding: 0.75em 2em;
text-align: center;
text-decoration: none;
text-indent: 500px;
color: #FFAA48;
border: 2px solid #FFAA48;
font-size: 24px;
display: inline;
border-radius: 0.3em;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
position: relative;
overflow: hidden;
background-image: url(https://bitcoin.org/img/icons/opengraph.png);
background-repeat: no-repeat;
background-position: center left 11px;
background-size: 30px 30px;
}
.btc:hover {
background-color: #FFAA48;
color: #fff;
border-bottom: 4px solid #FFAA48;
}
<div class="wrapper">
<a id='btc' class='btc' title='Bitcoin Current Price (USD)'>Loading...</a>
</div>
If you have any insights or suggestions, they would be greatly appreciated!