• Resolved kuma88

    (@kuma88)


    Hello.
    How can I align to center every text contained in my site?
    I would site title, watchword, menu, post title, text and footer aligned to the center of page.
    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You would need to find the appropriate css rule, then add the following:

    text-align: center;

    Thread Starter kuma88

    (@kuma88)

    I’m sorry but I’m not able to find where I must put “text-align: center” to align every header texts and the menu too.

    There is not a single place – there will be quite a few different places you’ll have to change the CSS – you’d need to have some knowledge of CSS and use a browser tool like Firebug to help you find the relevant CSS.

    This may be helpful:

    https://www.w3.org/Style/Examples/007/center.en.html

    Thread Starter kuma88

    (@kuma88)

    I know I’m probably asking you too much but the CSS file is here.
    If you help me, I will be grateful to you.
    Thank you for reply.

    Thread Starter kuma88

    (@kuma88)

    After several attempts I solved.

    #site-logo {
    float:none;
    margin-top: 32px;
    width: 100%;
    }

    #site-title {
    text-align:center;
    }

    #site-description {
    text-align:center;
    }

    It may be useful to someone.
    Thanks for your interest.

    Thread Starter kuma88

    (@kuma88)

    The upper part is referred to the header.
    The following part is referred to the footer:

    #colophon .widget {
    width: 100%;
    text-align:center;
    }

    #site-generator .copyright {
    float: none;
    width: 100%;
    text-align:center;
    }

    I’m not sure of the correctness of the code but it works to me!

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