Answers for "align html tag to center"

CSS
3

how to center html

<style>
  .el-parent {
    display: flex;
    align-items: center;		/* vertical align */
    justify-content: center;	/* horizontal align */
    text-align: center;			/* center align text */
  }
</style>
Posted by: Guest on July-30-2021
7

html center tag

<center>
	<p>This is centered</p>
</center>
Posted by: Guest on May-19-2020

Browse Popular Code Answers by Language