-
AuthorPosts
-
November 12, 2020 at 7:40 pm #1260205
Hi I am using enfold.
I need help because I need to create a kind of business card with image, linkable text and dotted border.
I tried with text block, column and images but I can’t figure it out if there is a way to create it.
In the private content you will find a link to a image of what I have to recreate.
Thank you very much in advance for the help.November 14, 2020 at 5:31 am #1260433Hey argentinadelfina,
Thanks for the screenshot, could you post a link to where we can see the element you want to apply this to as well please?
Best regards,
RikardNovember 14, 2020 at 5:08 pm #1260494Hi, thank you for your reply.
I need to create a new page with the kind of business card in the middle of the page.
Hope you can help me.
Thank you very much in advance for the help.November 16, 2020 at 4:41 am #1260626Hi,
Thanks for the update. Could you start creating the page in question, then post a link to where we can see the results please? We can help you out with the styling around the card for example.
Best regards,
RikardNovember 16, 2020 at 6:38 pm #1260765Hi and thank you for the reply.
I created a sample page filled with text, I used a color section, column, text block and special heading.
In the private section you will find a link to the sample page created and a screenshot from the layout builder. I did not insert images yet.
Thank you very much in advance for your help.November 17, 2020 at 11:11 am #1260935Hi,
Thanks for that. Please assign a class to the text block element, in the advanced tab. You can call it dotted-border for example. Then add this in Quick CSS:
.dotted-border p { border: 2px dotted #eee; border-radius: 15px; padding: 15px; }
Best regards,
RikardNovember 17, 2020 at 5:16 pm #1261062Thank you for your answer.
I would like to ask you how can I assign a class to the text block element where I need the dotted line?Thank you in advance
November 17, 2020 at 9:55 pm #1261121November 25, 2020 at 5:46 pm #1263043Hi tank you for your reply and sorry for my late.
I will try and I will let you know.
Thank you very muchNovember 25, 2020 at 6:19 pm #1263048Hi I’ve tried adding a id to the text block and the I added the Quick CSS but unfortunately there is no dotted line.
Thank youNovember 25, 2020 at 6:24 pm #1263050I would like to ask you one more question regarding the kind of business card that I need to create. How can I alling to center image and text as you can see in the link that I sent you?
Thank you very much in advanceNovember 25, 2020 at 11:00 pm #1263118Hi argentinadelfina,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
I do not see the id added.
Could you please attach some screenshots of the issue?
Best regards,
VictoriaNovember 26, 2020 at 10:44 am #1263224Hi thank you for the answer.
My mistake I did not activate the CSS class in the layout builder, now it works and I have a dotted border.My last question is how to center allign image and text inside a text block with links, you will find in the private content the link of what I need.
Thank you very much in advance
November 30, 2020 at 3:20 pm #1263991Hi,
Sorry for the very late reply, and thanks for the mockup, this is what I came up with:
this is a text block element inside a 3/5 column inside a color section:
this is the text block content:<h2>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h2> <img class="size-medium wp-image-1959 alignleft" src="https://test.test/wp-content/uploads/2017/02/people-2-1-300x300.jpg" alt="" width="300" height="300" /> <h3>Ut nisi sem, sagittis sodales risus vel, fringilla lobortis ex. Suspendisse urna quam, laoreet nec bibendum quis, tincidunt eu turpis.</h3> – link 1 – link 2 – link 3 emailaddress here
For the border I added a custom class
dotted-border
to the 3/5 column, and then used this css:.dotted-border { background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='50' ry='50' stroke='black' stroke-width='4' stroke-dasharray='2%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e"); border-radius: 50px; padding: 30px; }
Please give this a try.
Best regards,
MikeDecember 1, 2020 at 12:20 pm #1264209Hi, thank you very much for your reply.
I tried the code, but I have the dotted line splitted in two parts (link to the screenshot in private content).I would like to ask you also if possible having different allignement of the tex inside the business card? (link to the screenshot in private content)
Thank you very much in advance for your big help.
December 1, 2020 at 1:44 pm #1264231Hi,
Glad to help, but I’m not understanding your screenshots, the layout of the text seems the same, please try updating your test page so we can investigate further.Best regards,
MikeDecember 1, 2020 at 5:15 pm #1264289Hi, thank you for your reply.
I’ve updating the test page so you can take a look. I did not uploaded any image yet. I pasted the code and you will see the dotted border splitted in two parts.
I tried the code like this:
<p style=”text-align: left;”><span style=”font-size: 20px;”>Lorem ipsum</span>
<br class=”avia-permanent-lb” />Lorem Loren.
Lorem lorem:
– link 1
– link 2
– link 3
email addressAnd it works and the dotted border is not split in two parts, but I can’t figure out how to change the alignment of the text and the picture like in the semple I sent.
Thank you very much in advanceThank you very much
December 2, 2020 at 12:28 pm #1264481Hi,
Thanks for the feedback, the reason why you have two dotted borders is because your css is targeting.dotted-border p
instead of.dotted-border
as I posted in the example above.Best regards,
MikeDecember 2, 2020 at 5:13 pm #1264538Hi thank you for you reply.
I tried removing the p after dotted-border but I can barely see the doted border also if I change the color.I would like to ask you how can I align text and images centered inside the text block ( see link in private content).
thank you very much in advance
December 3, 2020 at 12:18 pm #1264739Hi,
Please try following these steps to achieve this layout:
Are you still using “/?page_id=4727” as a test page? It doesn’t represent the steps in the solution. Please include an admin login in the Private Content area.Best regards,
MikeDecember 3, 2020 at 3:18 pm #1264786Hi, thank you for your reply.
I am still using the test page and I’ve updated it. As you can see I have the dotted border but I am unable to center the text like in the sample that I’ve attached in the previous posts.
I set the page in a 1/3 grid row to have it centered. Am I wrong whit this?
In private content I pasted the text I am currently using.
Thank you very muchDecember 4, 2020 at 1:23 pm #1264999Hi,
Thank you for the feedback, the issue I see is that in your code you have wrapped all of the content in a paragraph (p) which you have added text-align: left; to.
In the code I posted the title is an H2, the text is an H3, this way they can be adjusted individually.
Please try this example under your example on the test page:<h2>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h2> <img class="size-medium wp-image-1959 alignleft" src="https://test.test/wp-content/uploads/2017/02/people-2-1-300x300.jpg" alt="" width="300" height="300" /> <h3>Ut nisi sem, sagittis sodales risus vel, fringilla lobortis ex. Suspendisse urna quam, laoreet nec bibendum quis, tincidunt eu turpis.</h3> <a href="#">– link 1</a> <a href="#">– link 2</a> <a href="#">– link 3</a> email address here
Please ensure the custom class for the column is
dotted-border-new
and add this css:.dotted-border-new { background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='50' ry='50' stroke='black' stroke-width='4' stroke-dasharray='2%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e"); border-radius: 50px; padding: 30px; } .dotted-border-new h2 { text-align: center; }
Best regards,
MikeDecember 4, 2020 at 4:17 pm #1265036Hi and thank you for your reply.
I pasted your code and it works but I can barely see the dotted border, it seems to be in opacity, if I add a p after dotted border in CSS i see the dotted but splitted in two or three parts.I also would like to ask you if there is a way to center the image and the text inside the dotted border and if possible change the space between text lines.
In private content link to jpeg.
Thank you very much for your help.December 5, 2020 at 12:51 pm #1265168December 5, 2020 at 5:48 pm #1265197Hi Mike thank you for your reply.
In the meantime let me know if what I added in private content area can helps you. I’ve done some adjustment regarding text from bold to normal and add marging to the image. I still have the issued as in my previous message.
Thank you in advance.
December 5, 2020 at 6:53 pm #1265202P.S.
I am doing some tries to better view the dotted border color, I tried to change the color code and some other css but I find out that if I add a letter p after dotted border I have the border well visible but splitted in two parts.
this is an example with the letter p:
.dotted-border-new p {
border: 2px dotted #000000;
border-radius: 30px;
padding: 15px;If I remove the letter p the border is right but barely visible and I am unable to change the color.
Thank you in advanceDecember 5, 2020 at 9:23 pm #1265205Hi,
The reason your dotted border on the div is faint is that you need to add!important;
to the border color to override the default values.
border: 2px dotted #000000 !important;
I see in your screenshot your HTML structure is different than the test page we have been working on, can you update the test page or link to the new one.
Based on this screenshot I would recommend this markup:<h5><span class="dotted-title">Title</span></h5> <span class="dotted-sub-title">sub-title</span> <img> (image html the same) <span class="dotted-content">content & links</span> <h6><span class="dotted-email">email link</span></h6>
I would also recommend moving your inline css to a css rule.
Best regards,
MikeDecember 7, 2020 at 6:32 pm #1265556Hi thank you for your reply.
I added important and now the dotted border is visible, I did not change as the markup and I don’t know how to move inline css to a css rule
In private content area you will find log in for the page
Thank you in advance.December 8, 2020 at 3:57 pm #1265778Hi,
Thank you for the login, I added a new example under your example on the test page using the class model outlined above, this will give you better control.
I used different classes for the css and added it to a code block element on the page so it would be easier to test with, please check the page front and back..dotted-div-border { border: 2px dotted #c9c9c9 !important; border-radius: 30px; padding: 15px; } .dotted-div-border h5 .dotted-title { font-size: 14pt; color: #808080; } .dotted-div-border h5,.dotted-div-border h6 { text-align: center; } .dotted-div-border .dotted-sub-title { font-size: 14pt; color: #808080; text-align: center; } .dotted-div-border .dotted-content { font-size: 8pt; } .dotted-div-border .dotted-content a { font-size: 8pt; color: #000000; } .dotted-div-border .dotted-email { font-size: 12pt; color: #808080; } .dotted-div-border > p { margin: auto; width: 90%; }
<h5><span class="dotted-title">Welcome to the (probably)</span></h5> <span class="dotted-sub-title"> littlest portal in the digital universe*</span> <img class="size-medium wp-image-1959 alignleft" src="profile-pic-2.png" alt="" width="80" height="80" /> <span class="dotted-content">I do digital for a better world. You can check my updates here: >a href<- Twitter>/a< >a href<- Slideshare>/a< </span> <h6><span class="dotted-email"><a href>max@-----.net</a></span></h6>
Best regards,
MikeDecember 9, 2020 at 12:22 pm #1265967Hi thank you very much for your help.
I only added the following line: <p style=”line-height: 20px;”> to reduce the space between text lines.
Thank you
-
AuthorPosts
- The topic ‘text over image and dotted border’ is closed to new replies.