Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1251350

    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! Glad it is showing up now. To center those add inside the raw content element, please edit your page in Cornerstone and insert the following custom css in the settings tab, Settings > Custom CSS

    .entry-content .x-raw-content iframe{
        width: 160px !important;
        margin: 0 auto !important;
    }

    Please let us know if this works out for you.

    #1251781

    DataSplit
    Participant

    Thanks, but one is 720 px wide and one is 160 px wide. I need all of them to be centered and the css you provided would only fix the 160 px one and mess up the the 720px one.

    I am trying something like this so that it would center regardless of width, but it isn’t working:

    .entry-content .x-raw-content iframe{
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    #1252345

    Friech
    Moderator

    Hi There,

    That is basically the same solution Nel is giving to you, please update the code to this:

    .entry-content .x-raw-content iframe{
        width: 160px;
        margin: 0 auto !important;
    }
    .entry-content .x-raw-content.banner2 iframe {
    	width: 730px;
    }

    And add a class banner2 on the RAW content element where the 720px banner is place.

    Hope it helps, Cheers!

    #1252346

    Friech
    Moderator

    Hi There,

    That is basically the same solution Nel is giving to you, please update the code to this:

    .entry-content .x-raw-content iframe{
        width: 160px;
        margin: 0 auto !important;
    }
    .entry-content .x-raw-content.banner2 iframe {
    	width: 730px;
    }

    And add a class banner2 on the RAW content element where the 720px banner is place.

    Hope it helps, Cheers!

    #1252382

    DataSplit
    Participant

    Thanks! I was able to take that and form my own classes per ad type.

    How can I nest a raw content area in a column that is nested on a tab item and then give it a class? This has to be done with shortcode and I have it as follows:

    [column type=”one-fourth”]nest raw content area here and give it a class[/column]

    #1252783

    Friech
    Moderator

    Hi There,

    RAW content element shortcode would be:

    [x_raw_content class="myclass"]Nested RAW element content.[/x_raw_content]

    Thanks.