Archived topic
Margin above a Heading in content
3 replies · Started by kiant123 on July 22, 2021
Viewing posts 1–4 of 4
Hi,
How do you change (increase) the top margin above a heading (e.g. H2) within the content? I can see that you can control the bottom margin in the customization control but can't see how to do this for the top?
Is this possible?
Thanks in advance!
Hi there,
you can use a little CSS eg.
.entry-content h2 {
margin-top: 20px;
}
Or you can tell it to only add the margin if it comes after a particular element such as a Paragraph:
.entry-content p + h2 {
margin-top: 20px;
}
Thanks David. Worked perfectly!
Glad to hear that
This archived topic is closed to new replies.