generalize centering css fix for webplayers