Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1460627

    Hi,
    i would like to add a border around some text with image elements.
    I would also like to give some more space to the text, so it is not to near to the given border.
    Please see screenshot.
    How can i do that?
    kind regards
    Jak

    #1460652

    Hey Jak73,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #top.page-id-502 #av_section_1 .flex_column.av_one_half {
    	border: 2px solid;
    }
    #top.page-id-502 #av_section_1 .flex_column.av_one_half h2:nth-child(2) {
    padding-right: 20px;
    }

    you may need to adjust the image in the middle one, it is adding white space, perhaps the image is not wide enough? All of the other images look good.

    Best regards,
    Mike

    #1460666

    Hi Mike,
    this is really great!!!
    There a two small things, i would like to change.
    Please see the screenshot.
    kind regards and many thanks!
    Jak

    #1460670

    Hi,
    #1: has an extra divs around the text that none of the other do, I assume this is an error, check your code in the text block in the “text” tab in instead of “visual”
    Enfold Support 6247
    all of the other ones are two H2 tags like this:
    Enfold Support 6249
    #2: this is a div column like all of the others, only it has no text block in it, I assume you will be adding one?
    If not use this css instead to exclude it:

    #top.page-id-502 #av_section_1 .flex_column.av_one_half:not(.avia-builder-el-9) {
    	border: 1px solid #cccccc;
    }

    Best regards,
    Mike

    #1460678

    Hi Mike,
    yes, you were right. I removed the error. It’s nice.But i could not remove the border from the emty one. This one should stay emty.
    kind regards Jak

    #1460681

    Hi,
    You still have the old css:

    #top.page-id-502 #av_section_1 .flex_column.av_one_half {
    	border: 1px solid #cccccc;
    }

    and not this new one:

    #top.page-id-502 #av_section_1 .flex_column.av_one_half:not(.avia-builder-el-9) {
    	border: 1px solid #cccccc;
    }

    please check again

    Best regards,
    Mike

    #1460682

    Hi Mike,

    i not sure if i understod correctly.
    I added this now, but the border of the empty one is still there?

    #top.page-id-502 #av_section_1 .flex_column.av_one_half h2:nth-child(2) {
    padding-right: 20px;
    }
    #top.page-id-502 #av_section_1 .flex_column.av_one_half:not(.avia-builder-el-9) {
    	border: 1px solid #cccccc;
    }
    #top.page-id-502 #av_section_1 .flex_column.av_one_half {
    	border: 1px solid #cccccc;
    }

    kind regards
    Jak

    #1460686

    Hi,
    Please remove the last css rule:
    Enfold Support 6251

    Best regards,
    Mike

    #1460689

    Works perfect, thanks a lot Mike!!!

    #1460692

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘How to add a border around an text with image element?’ is closed to new replies.