Simplified vertical-center code