There is definitely an easy response, but I cannot get both divs
to center. I used inline blocks, floats and I even tried to use a CSS grid. I need the dollars sign to be separate from the number because I want to have a jQuery effect on the number but if I include the dollar sign it does not recognize it as a number.
I just want both divs
to be centered across the screen.
text-align: center;
does not seem to work
#dollar_sign {
display: inline-block;
margin: 0 auto;
font-size: 150px;
color: rgb(0, 255, 0);
}
#num {
display: inline-block;
margin: 0 auto;
font-size: 150px;
color: rgb(0, 255, 0);
}
<div id="big_number">
<div id="dollar_sign">$</div>
<div id="num">1,000,000</div>
</div>
<div style="clear: both;"></div>