H1 & H2 tag spacing - Post ID 203625

User 23638 Photo


Registered User
30 posts

How can I decrease the blank line spacing between the H1 & H2 tags. I tried to enter the H1 tag with a H4 tag below it, but there is just too much open space beyween the lines.

Thanks
User 187934 Photo


Senior Advisor
20,247 posts
Online Now

Asign some css to it.

h1{
height:10px;
}
h2{
height:8px;
}

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 23638 Photo


Registered User
30 posts

Really cool, many thanks!
User 122279 Photo


Senior Advisor
14,571 posts

You can also decrease the default padding:

h1{
height:10px;
padding-bottom: 2px;
}
h2{
height:8px;
padding.bottom: 2px;
}


The 2px is just an example, you can play around with it.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.