<style>
.flex { display:flex; }
.host::before { display:inline-block; content:'On the same'; }
.host::after { display:inline-block; content:'line'; color:green; }
</style>
<div class=flex>
<div class=host> </div>
</div>
