removed margins and used position absolute to design the layout