changed css codes for vertical layout