display a text always at the center irrespective of device size css code example Example: keeping elements of container in center .container { margin : 0 auto; }