Support » Plugin: LuckyWP Table of Contents » Table of Content not centered in Twenty Twenty

  • Resolved pmmueller

    (@pmmueller)


    Lucky WP used to work fine, but today I found that the box with ToC in the frontend was left-aligned and not centered.

    Responsiple was one css rule:

    .lwptoc {
        margin: 32px 0;
    }

    The “0” kills the “auto” Twenty Twenty uses to center all child-elements of .entry-content.

    I have fixed this in my own style sheet with

    .lwptoc {
        margin: 32px auto !important;
    }

    But it might be better to explicitely set margin-top and margin-bottom:

    .lwptoc {
        margin-top: 32px;
        margin-bottom: 32px; 
    }

    That way horizontal margins are not effected.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Table of Content not centered in Twenty Twenty’ is closed to new replies.