Title: First child margin
Last modified: March 23, 2025

---

# First child margin

 *  Resolved [wpressman](https://wordpress.org/support/users/wpressman/)
 * (@wpressman)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/first-child-margin/)
 * Hi, first of all many thanks to the developers for UB!
 * I have an annoying issue with the first element. Unlike the 2nd and 3rd column,
   the first column has too much space (margin/padding?) to the header line above.
   Is there a way to fix this? I have already tried to add some custom CSS in the
   customizer section in the WordPress setting. In general with all li-elements 
   it works, but I have no luck when trying change the first child in UB-TOC only!
 * Greetings, Gerega
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffirst-child-margin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Farhan Shafi](https://wordpress.org/support/users/farhanshafi/)
 * (@farhanshafi)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/first-child-margin/#post-18376977)
 * Hi, Thanks for reporting the issue.
 * For a quick fix, you can add the following CSS. We will properly address it in
   a future release. Select the block, go to the style tab, and you will see the
   Custom CSS panel where you can paste the CSS.
 *     ```wp-block-code
       .ub_table-of-contents-container ul{ margin-top: 0;}
       ```
   
 * Kind Regards
   Farhan Shafi
 *  Thread Starter [wpressman](https://wordpress.org/support/users/wpressman/)
 * (@wpressman)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/first-child-margin/#post-18377516)
 * Dear Farhan Shafi, that’s it!! Many many thanks!! Greetings from Germany 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘First child margin’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-blocks/assets/icon-256x256.png?rev=2966061)
 * [Ultimate Blocks – 25+ Gutenberg Blocks for Block Editor](https://wordpress.org/plugins/ultimate-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-blocks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wpressman](https://wordpress.org/support/users/wpressman/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/first-child-margin/#post-18377516)
 * Status: resolved