WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to force content area to be in center of page? (3 posts)

  1. Luka86
    Member
    Posted 1 year ago #

    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

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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;
    }
  3. Luka86
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic