a[name] { padding-top: 50px; margin-top: -50px; display: inline-block; /* required for webkit browsers */ }