I looked at this page on meyerweb:
http://meyerweb.com/eric/css/edge/menus/demo.html
and I noticed something curious about how the addition is created in the header:
h1 {margin: 0; padding: 1em 0.25em 0; font: bold 2.5em Arial, sans-serif; line-height: 0.8em; border-bottom: 1px solid silver; text-align: right; color: #557; letter-spacing: 2px;}
Now, if you remove the line-height directive, it adds a bit of padding to the top. Thus, the line height functions essentially to remove padding bits from the top of h1. My question is: why not leave the height line and change the top from 1em to .9em?
I understand that there are many ways to throw a cat in CSS, but I decided that if an expert like Mayer does this, there is probably a reason for choosing.
Thank you Jonah
css
Jonah
source share