Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #340008

    Hello!

    I am using the icon element in the text editor and adding text after the icon. As you can see in the example below, the first 2 lines of text are spaced/ indented correctly and then the 3rd lines jumps forward. Can you please tell me how to correct this so the 3rd line matches 1 and 2?

    Thank you!
    Example

    #340050

    Hey onegirlrtw!

    Can you post the link to your page where we can see the example please?

    Regards,
    Yigit

    #340081
    This reply has been marked as private.
    #341300

    Hey!

    Thank you for the link.

    Please separate the text and the icon using the column shortcodes. The 1/4 and 4/5 column might work best.

    Best regards,
    Ismael

    #341427

    Hi Ismael,

    Thanks for this suggestion! I’m not sure that this is a viable solution; as you can see the separating of columns creates a large gap between the icon and the text and using </br> s to try to match them horizontally seems to be a spacing gamble.

    In my original example, I am using the icon with text in a text box. If the second line of text is indented, then there has to be a way to code the third line of text to match (I would think?). Or, an alternative method to use text and icon that I haven’t thought of?

    Example New

    #342123

    Hey!

    Please create a test page using the columns then we’ll remove the column margins using css. If possible, enclosed the content on a container with unique css class or id. Something like this:

    <div class="icon-text-combo">
    ICON TEXT CONTENT HERE
    </div>

    Forgive me for the class name. :)

    Best regards,
    Ismael

    #342245
    This reply has been marked as private.
    #343401

    Hi!

    Please don’t separate all columns with the icon-text-combo container. Just create a single container with the class then insert all column content there. We have to do this so that we can specify the columns inside the icon-text-combo from any other column elements. Also, use 1/5 column layout for the icon and 4/5 column layout for the text. Note that you can generate the column shortcode on a separate post or page using the shortcode wand then copy it on the text block. The structure should look like this:

    <div class="icon-text-combo">
    [av_one_fifth first]ICON SHORTCODE HERE[/av_one_fifth][av_four_fifth]TEXT HERE[/av_four_fifth]
    [av_one_fifth first]ICON SHORTCODE HERE[/av_one_fifth][av_four_fifth]TEXT HERE[/av_four_fifth]
    [av_one_fifth first]ICON SHORTCODE HERE[/av_one_fifth][av_four_fifth]TEXT HERE[/av_four_fifth]
    [av_one_fifth first]ICON SHORTCODE HERE[/av_one_fifth][av_four_fifth]TEXT HERE[/av_four_fifth]
    </div>

    Add this on Quick CSS or custom.css:

    .icon-text-combo .flex_column.av_four_fifth {
    margin: 0;
    }

    Best regards,
    Ismael

    #343495
    This reply has been marked as private.
    #344608

    Hey!

    Try this in Quck CSS, maybe it is a solution which is alright for you:

    .av_font_icon {
    display: flex; 
    }
    

    Otherwise could you please provide us admin access? Post it here as a private reply

    Best regards,
    Andy

    #344685
    This reply has been marked as private.
    #345499

    Hi!

    replace my code above with that one:

    [data-av_icon]:before {
    display: flex !important; 
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    }
    

    This should help.

    Best regards,
    Andy

    #345756

    Hi Andy, Thank you!

    The new code above is left justifying icons that used to be next to text in buttons and also messing up icons in icon lists (used on other pages in the site like /momo/disclaimer).

    #346831

    Hey!

    We should handle this differently I think.
    I had a look into you WordPress backend for page http://healthybliss.net/momo/consultations/iridology/
    In Avia Layout Builder you created a single full width element for “Here’s What You’ll Get:”. Why not separate icons, text and image into THREE different columns? This way it would be easier I think and you could separate icons from text.

    Cheers!
    Andy

    #347085

    Hi Andy, We tried that already – see above. This was my response – I’m not sure that this is a viable solution; as you can see the separating of columns creates a large gap between the icon and the text and using </br> s to try to match them horizontally seems to be a spacing gamble. (I also included a screen shot so you can see what I am talking about.)

    I thought to keep all in one column to minimize spacing. The whole point of using an icon next to text is to have it next to the text. It seems that using icons next to text only works well when the text is 1-2 lines and not more. There is simply no easy solution.

    #347565

    Hi!

    I don’t think you can accomplish this with just css. You need to manually code the structure of the icons and the text. The suggestions above is the easiest way to do it. For further modifications, please visit Envato Studio or Werkpress.

    Best regards,
    Ismael

    #347605

    Sababa, Thank You!

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘Icon with text not spacing correctly after 3 lines of text’ is closed to new replies.