resolving css problem for custom layout