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

  1. Luka86
    Posted 2 years ago #

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


    I did that by this command in header.php

    <style type="text/css">

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


    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?

  2. WPyogi
    Forum Moderator
    Posted 2 years 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
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic