WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to force content area to be in center of page?

[Resolved] How to force content area to be in center of page?

  • I am importing “iframe” from another page.
    First problem was that i needed to extend THIS URL web page.

    http://www.sunnysplit.com/split-accomodation/

    I did that by this command in header.php

    <style type=”text/css”>

    .page-id-106 #content { width: 100%; }

    </style>

    Now you see problem. The iframe is still going out of page. I need to put it to center, maybe closer to the left border where is more space?
    Help

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

    @wpyogi

    Forum Moderator

    You should not be modifying ANY theme files – your changes will be overwritten and lost when WP is updated. Instead you can use a Child Theme – see: http://codex.wordpress.org/Child_Themes

    You will need to move any changes to the child theme and reinstall a clean copy of twentyeleven theme.

    After you’ve done that, try adding adjusting the margins on the style you have above:

    .page-id-106 #content {
        margin: 0 2%;
        width: 1200px;
    }

    i just put margin 0 2% and its fine now..
    thx you very much
    thx
    greetings from Croatia, Europe

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to force content area to be in center of page?’ is closed to new replies.
Skip to toolbar