CSS: Spacing after a header
almost 10 years ago from Nicholas Hendrickx, Former Lead Designer at Zentrick
Example: You have a multi-line h1 header with a certain line height, followed by a multi-line block of body text with a different line height.
How do you separate both? Do you solely rely on their line heights? Or do you add margins? How much?
I usually get rid of top margins — because they push the first level of headers down — and use only bottom margins to separate headers.
Of course, the space in between depends on the application and on personal taste, but I'm wondering if there are benefits to using either margins or line heights. Or mixing both.
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now