fix layouts for complex css