<div style="width: 500px;height:60px;margin: auto;">
<div style="width: 300px;height:60px;background: red;float:left;"></div>
<div style="width: 200px;height:60px;background: blue;float:right;">Some great text here</div>
</div>
How can I add a 20 pixel margin by CSS code in text? I tried
padding-left: 20px;
but this will make the second block go down .
P.S. The span
tag is not an option, and I don't want to create another class for only the text.