Aligning text smartly in CSS

Have you ever thought of aligning text smartly in CSS? You must try now. No there is no CSS property text-align:smart or smartly but can achieved by CSS easily.
http://nocode.in/aligning-text-smartly-in-css/