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

    You cannot add the padding to your short-code. All you can do is enter some custom-css in the custom-css box of your theme.
    You can easily overwrite the existing stylesheet.

    For example you would like to add a margin between your columns, you just place the following in your theme’s style.css:

    `
    .one_half {
    width: 49% !important;
    margin-right: 2% !important;
    }
    .one_half.last_column {
    width: 49% !important;
    margin-right: 0px !important;
    }
    .one_third {
    width: 32% !important;
    margin-right: 2% !important;
    }
    .one_third.last_column {
    width: 32% !important;
    margin-right: 0px !important;
    }
    .two_third {
    width: 66% !important;
    margin-right: 2% !important;
    }
    .two_third.last_column {
    width: 66% !important;
    margin-right: 0px !important;
    }
    .one_fourth {
    width: 23.5% !important;
    margin-right: 2% !important;
    }
    .one_fourth.last_column {
    width: 23.5% !important;
    margin-right: 0px !important;
    }
    .three_fourth {
    width: 74.5% !important;
    margin-right: 2% !important;
    }
    .three_fourth.last_column {
    width: 74.5% !important;
    margin-right: 0px !important;
    }
    .one_fifth {
    width: 18.4% !important;
    margin-right: 2% !important;
    }
    .one_fifth.last_column {
    width: 18.4% !important;
    margin-right: 0px !important;
    }
    .two_fifth {
    width: 39% !important;
    margin-right: 2% !important;
    }
    .two_fifth.last_column {
    width: 39% !important;
    margin-right: 0px !important;
    }
    .three_fifth {
    width: 59% !important;
    margin-right: 2% !important;
    }
    .three_fifth.last_column {
    width: 59% !important;
    margin-right: 0px !important;
    }
    .four_fifth {
    width: 79.6% !important;
    margin-right: 2% !important;
    }
    .four_fifth.last_column {
    width: 79.6% !important;
    margin-right: 0px !important;
    }
    .one_sixth {
    width: 15% !important;
    margin-right: 2% !important;
    }
    .one_sixth.last_column {
    width: 15% !important;
    margin-right: 0px !important;
    }

    Plugin Author Stefan van den Dungen Gronovius

    (@dungengronovius)

    Hi Tim,

    your shortcode should look something like this after adding a column with padding:

    [one_half padding=”20px 20px 20px 20px”>content[/one_half]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Padding not working….’ is closed to new replies.