Tweak percentages and add close PHP tag