Added text-align property in css for proper justification.