• Resolved keepingitril

    (@youthgas)


    Hi there,
    I know it’s a simpler question, but I can’t work out the right spot.
    In all the pages (the paint lists) on my site, I want to centre the text, but I am not sure of the best way to do this centrally in the CSS (rather than every line as it currently is).
    Thanks in advance!

    • This topic was modified 7 years, 2 months ago by keepingitril.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    This should do it for you.

    .page:not(.page-id-2) .site-content {
    	text-align: center;
    }

    The above specifically excludes your about page, and the home page does not have the .page body CSS class, so it would not be applied to home.

    Thread Starter keepingitril

    (@youthgas)

    Thankyou, thankyou, thankyou, thankyou.

    It worked perfectly!

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hooray and you are welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Centering text’ is closed to new replies.