• georgeliebau

    (@georgeliebau)


    The page content text is not centering on an events page I have:
    http://www.gobrightwing.com/kindness-forward

    I looked at the style.css, the layout.css, the page-blank-events.php that is used as template and cannot find how to get that content aligned center.

    I tried a fix found in the forum with:

    <?php if(is_page(‘kindness forward’)) { ?>
    <style> #main {width:100%;} </style>
    <?php }; ?>

    I tried using the name of the page as displayed in ‘all pages’ as well as the link with no luck.

    Any suggestions how I can get the article text content to center on the page?

    Much appreciated!

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

    (@wpyogi)

    The width of that div is set to 550px:

    .peace_text {
        float: left;
        margin-right: 20px;
        width: 550px;
    }

    WPyogi

    (@wpyogi)

    If you want to keep that width but center it, you need to use:

    .peace_text {
        margin: 0 auto;
        width: 550px;
    }

    Thread Starter georgeliebau

    (@georgeliebau)

    That worked perfectly! Thank you so much WPyogi!!

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

The topic ‘Centering content’ is closed to new replies.