-
AuthorPosts
-
June 30, 2024 at 2:50 pm #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
JakJune 30, 2024 at 5:29 pm #1460652Hey 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,
MikeJune 30, 2024 at 7:14 pm #1460666Hi Mike,
this is really great!!!
There a two small things, i would like to change.
Please see the screenshot.
kind regards and many thanks!
JakJune 30, 2024 at 8:20 pm #1460670Hi,
#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”
all of the other ones are two H2 tags like this:
#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,
MikeJune 30, 2024 at 9:04 pm #1460678Hi 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 JakJune 30, 2024 at 9:38 pm #1460681Hi,
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,
MikeJune 30, 2024 at 9:48 pm #1460682Hi 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
JakJune 30, 2024 at 9:55 pm #1460686June 30, 2024 at 9:58 pm #1460689Works perfect, thanks a lot Mike!!!
June 30, 2024 at 10:08 pm #1460692Hi,
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 -
AuthorPosts
- The topic ‘How to add a border around an text with image element?’ is closed to new replies.