Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you have a place to put the CSS? If so, where?

    Thread Starter LordLiverpool

    (@lordliverpool)

    I’ve created an attitude-child theme and I plan on adding any custom CSS into it.

    Thanks

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Add this CSS:

    #access ul {
     display: table;
     margin: 0 auto;
    }

    Thread Starter LordLiverpool

    (@lordliverpool)

    Bingo!!! That worked perfectly

    Thank you

    I was dithering around in Firebug for hours trying to isolate the CSS

    I wish I knew a better way to track down CSS

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If the ‘<li>‘ elements of the menu were displayed ‘inline-block‘ as they are on some themes then you probably could just do this:

    #access ul { text-align: center; }

    Hope that helps.

    Thread Starter LordLiverpool

    (@lordliverpool)

    Ok I tried

    #access ul {
     display: table;
     margin: 0 auto;
    }

    and I also tried your second suggestion

    #access ul { text-align: center; }

    Only the first one works

    Thanks very much Andrew you’re a top bloke! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Center Justify Menu’ is closed to new replies.