ribbon modified to match the margin of each element