Adjusted CSS structure to use margins instead of fixed heights