Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #981868

    I figure this is fairly basic but can’t figure it out. I have a text box paragraph with a small image set to alignleft. The text wraps underneath the image. I would like the text to not wrap and keep the left alignment the same for the entire paragraph, essentially creating whitepsace under the image for the entire length of the paragraph.

    #982317

    Hey hobart,
    If I understand correctly, you would like to achieve this:
    2018-07-06_230937
    To do this first enable custom classes for your elements by checking the option at Enfold Theme Options > Layour Builder > Show element options for developers.
    Then add a custom class for your text block element, such as “no-wrap-text”
    2018-07-06_231655
    Then add this code in the General Styling > Quick CSS field:

    .no-wrap-text img {
    padding-bottom: 100vh;
    }

    If your paragraph is smaller, then you maybe able to change the setting to 50vh (50% visual height), try some different settings to see what works best for you.

    Best regards,
    Mike

    #982324

    Thanks for the detailed reply, Mike. I greatly appreciate it. In theory, this is exactly what I was hoping to achieve. Unfortunately, I have about 25 difference places where I need to apply this and they all are different length and will change depending on responsiveness of the screen. I was hoping there was a way to extend the bottom padding 100% of the current text box height, but was not coming up with a logical way to do this. I will attempt to do a different page layout design to see if I can figure out an alternative method.

    Thanks again!

    #982499

    Hi,
    Another alternative is to place a image element and text block element in the same column element.
    First give the column element a custom class of “row” (I used a 1/2 column on the page)
    Then give the image element a custom class of “column1” (my image is 180px wide & on the left of the text)
    and give the text block element a custom class of “column2”
    Then use this css:

    .row {
      display: flex;
      justify-content: flex-start;
      height: 100%;
    }
    .column1 {
      width: 100%;
      float: left;
    }
    .column1 img {
      min-width: 180px;
    }
    .column2 {
      width: 100%;
      float: right;
    }

    This is responsive to all screen sizes, just adjust for your image width.
    Sorry I couldn’t post images, I site I use seems down right now.

    Best regards,
    Mike

    #983378

    This is outstanding! I really appreciate the thoroughly help on this. I have a quick question to see if there is an adjustment off the top of your mind that may get me 100%. I have all of the content within a 3/5 column so on a full width screen it doesn’t take up the entire width for aesthetic reasons. If I add a 1/5 column on left, then use this code for the 3/5 it aligns to left of page (see private link). Is there a quick adjustment to offset this. You’re awesome!

    #983472

    Hi,
    Is this for the one page only?
    Can you please include a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.