Non-JS implementation of vcenter directive