Tagged: margins
-
AuthorPosts
-
June 21, 2025 at 2:22 am #1485739
I’ve included a page in Private Content that shows that the code block element needs a wider margin or padding between it and the text block containing the H2 heading.
Can you assist please?
June 21, 2025 at 1:17 pm #1485753Hey John,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:.page-id-4128 #after_section_1 { padding-top: 50px; }adjust to suit.
Best regards,
MikeJune 22, 2025 at 4:19 am #1485764That doesn’t seem to work.
I cleared the caches, tried adding !important, tried adding it to the Theme File Editor as well as the Quick CSS.June 22, 2025 at 2:05 pm #1485773June 23, 2025 at 11:19 pm #1485815Thanks Mike. Is there a more generic way to solve this issue in future when I have a code block followed by a text block?
June 24, 2025 at 6:30 am #1485819Hi,
You can try this css code to adjust the top spacing of any text block element next to a code block.
.avia_codeblock_section + .av_textblock_section { padding-top: 50px; }Best regards,
IsmaelJune 25, 2025 at 5:02 am #1485866I entered that CSS in Quick CSS, purged the WP caches, cleared the browser caches, created a new page fo testing but it isn’t working for me.
The Page is in the Private Content block.
June 25, 2025 at 7:29 am #1485876Hi,
The code will only work if the Text Block is placed directly next to or below the Code Block element. (screenshot S1)
It should work on the previous page. (screenshot S2)
Best regards,
IsmaelJune 26, 2025 at 3:20 am #1485919Are those screenshots that you just posted publicly visible? If so, I’d appreciate it if you could remove them please Ismael.
June 26, 2025 at 6:57 am #1485920June 28, 2025 at 8:19 am #1486065All good. Thank you.
June 28, 2025 at 12:04 pm #1486071Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Padding between a code block and text block’ is closed to new replies.

