Updated layout css

reordered paddings and margins and added a valign top class.