Add class ending with “inner-container” to have paragraph margin
-
It seems like the official Twenty-XX themes require container to have classes ending with “inner-container” to have normal paragraph margin. From the style.css of the Twenty Twenty-One theme:
.site-main > article > *, .site-main > .not-found > *, .entry-content > *, [class*=inner-container] > *, .wp-block-template-part > * { margin-top: var(--global--spacing-vertical); margin-bottom: var(--global--spacing-vertical); }
Without this class the vertical margins of paragraph will be 0. You can see the difference in this test page
See more: Understanding how the class family
inner-container
works – WordPress Stack Exchange
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add class ending with “inner-container” to have paragraph margin’ is closed to new replies.