Use display: inline; for visibility classes.