There is no direct equivalent. The <center> not only centers its containing text, but also any element of the block. You can imitate each of them separately, but not simultaneously.
To center any content of an inline / inline block (text, images, video, etc.) you must apply the following to a div element or another block:
.center { text-align: center; }
To center the block element itself, use this:
.blockcenter { width: 200px; margin: 0 auto; }
Obviously, replace 200px with the desired block width and 0 with whatever value you prefer for the upper and lower bound fields. Also note that you should usually use class names that describe the element, not its representation.
DisgruntledGoat
source share