Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #778284

    oap5432
    Participant

    I am trying to layout 3 columns like you see in the picture below (picture 1). Each column has an image and text on it. I spent some time reviewing the documentation and demos, but the solution adopted presents some issues. I have decided to use a text box inside the column and place some code like:

    [image src=’http://www.alavida-cremation.com/alavida1/wp-content/uploads/2016/02/2_Alavida_CoupleDancing_3.jpg’ alt=”couple dancing” link=”true” href=”#” title=”couple dancing” target=”#” class=”man”][custom_headline style=”text-transform: uppercase; position:relative; bottom: 245px; ” class=”man” type=”center” level=”h2″ looks_like=”h4″] Lorem Ipsum Couple Dancing[/custom_headline]

    I am not able to eliminate the bottom margin below each picture (see picture 2). I also need to eliminate the space between the images when they stack vertically on small screens.

    I don’t know if there is a better way to achieve this and my knowledge is limited. If there is a better method to accomplish what I intend to do, could you please suggest a different approach?

    #778288

    oap5432
    Participant
    This reply has been marked as private.
    #778303

    oap5432
    Participant
    This reply has been marked as private.
    #778934

    Lely
    Moderator

    Hi There,

    Thank you for the complete information. The space below is a combination of an empty space at end of the text element which is converted into paragraph tag on the frontend and also the space for your headline. Although you move it higher, it still occupied the space below.

    Please try the following.
    1. On each of those TEXT element STYLE FIELD, add position: relative;
    2. For each of your headline style, please update position: relative; to position: absolute; like below:
    <h2 class="h-custom-headline man center-text h4" style="text-transform: uppercase; position:absolute; bottom: 245px; "><span> Lorem Ipsum Text </span></h2>
    3. On Appearance > Customize > Custom > CSS, add the following:

    .home #x-section-1 p:empty {
        display: none;
    }
    .home #x-section-1 p{
        margin-bottom: none !important;
    }

    Hope this helps.

    #778973

    oap5432
    Participant

    Thank you for your help. I tried what you suggested but it did not work. What should I do?

    #779334

    Rue Nel
    Moderator

    Hello There,

    Sorry for the confusion. please edit your page in Cornerstone and insert the following custom css in the settings tab, Settings > Custom CSS instead.

    .home #x-section-1 p:empty {
        display: none;
    }
    .home #x-section-1 .x-text p{
        margin-bottom: 0 !important;
    }

    Please let us know if this works out for you.

    #779757

    oap5432
    Participant
    This reply has been marked as private.
    #780486

    Friech
    Moderator

    Hi There,

    Yes, you can use the shortcode instead that will output the same html. Please update the code to this

    [custom_headline type="center" level="h2" looks_like="h4" accent="false" class="man center-text" style="text-transform: uppercase;position: absolute;bottom: 145px;color: #fff;left: 25%;"]Lorem Ipsum Text[/custom_headline]

    I’ve added the left: 25%; property that should center your text.

    This classes h-custom-headline man center-text h4 are predefined in X|Theme. home is a class that applied by WordPress to your home page. If you need to apply that to other page you need to replace the .home with the page class-id (page-id-XX).

    How to Locate Post/Page IDs

    Hope it helps, Cheers!

    #781582

    oap5432
    Participant

    Thank you for your help.

    #781688

    oap5432
    Participant

    Sorry to bother you again. I have decided to use a slider revolution to display the 3 images and solve all the problems with the text vertical and horizontal alignment. Could you please help me to eliminate the border that appears at the bottom of the slider (see image below)?
    Thank you a lot

    #782212

    Friech
    Moderator

    Hi There,

    I’m not seeing that gray space on my end. But I’m seeing a big gap between the slide from the Alavida takes a modern approach…. headline. That gap is the second section’s top margin and top padding. You can easily adjust that but inspecting the section.


    screenshot

    Hope it helps, Cheers!