Helper function to center element in container
Width of element
Height of element
Width of container
Height of container
Centered position
Helper function to center element in container