center text in div position relative code example Example: keeping elements of container in center .container { margin : 0 auto; }