Categories

ep.ui.imgCenter()

Categories: UI

ep.ui.imgCenter( image, [ fitToContainer ] )

Plugin: ep.ui.core

Description: Position an image centered to the parent element.

  • ep.ui.imgCenter( image, [ fitToContainer ] )

    version added: 6.14.0

    image   An image DOM element.

    fitToContainer   A booelan indication whether to fit the image size to the parent element.

The ep.ui.imgCenter() method positioned an image the middle of the parent element.