-
AuthorPosts
-
February 3, 2016 at 11:01 am #778284
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?
February 3, 2016 at 11:02 am #778288This reply has been marked as private.February 3, 2016 at 11:05 am #778303This reply has been marked as private.February 3, 2016 at 6:05 pm #778934Hi 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, addposition: relative;
2. For each of your headline style, please updateposition: relative;
toposition: 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.
February 3, 2016 at 6:39 pm #778973Thank you for your help. I tried what you suggested but it did not work. What should I do?
February 4, 2016 at 12:10 am #779334Hello 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.
February 4, 2016 at 6:59 am #779757This reply has been marked as private.February 4, 2016 at 3:42 pm #780486Hi 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).
Hope it helps, Cheers!
February 5, 2016 at 8:17 am #781582Thank you for your help.
February 5, 2016 at 9:14 am #781688Sorry 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 lotFebruary 5, 2016 at 3:06 pm #782212 -
AuthorPosts