Viewing 30 posts - 1 through 30 (of 33 total)
  • Author
    Posts
  • #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.

    #1260433

    Hey 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,
    Rikard

    #1260494

    Hi, 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.

    #1260626

    Hi,

    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,
    Rikard

    #1260765

    Hi 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.

    #1260935

    Hi,

    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,
    Rikard

    #1261062

    Thank 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

    #1261121

    Hi argentinadelfina,

    You can find the Developer Settings on the Advanced tab in the Text block, there you can specify the class or the id.
    Image 2020-11-17 at 21.54.09.png

    Best regards,
    Victoria

    #1263043

    Hi tank you for your reply and sorry for my late.
    I will try and I will let you know.
    Thank you very much

    #1263048

    Hi 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 you

    #1263050

    I 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 advance

    #1263118

    Hi 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,
    Victoria

    #1263224

    Hi 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

    #1263991

    Hi,
    Sorry for the very late reply, and thanks for the mockup, this is what I came up with:
    2020-11-30_080453.jpg
    this is a text block element inside a 3/5 column inside a color section:
    2020-11-30_080956.jpg
    2020-11-30_081114.jpg
    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,
    Mike

    #1264209

    Hi, 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.

    #1264231

    Hi,
    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,
    Mike

    #1264289

    Hi, 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 address

    And 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 advance

    Thank you very much

    #1264481

    Hi,
    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,
    Mike

    #1264538

    Hi 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

    #1264739

    Hi,
    Please try following these steps to achieve this layout:
    2020-11-30_080453.jpg
    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,
    Mike

    #1264786

    Hi, 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 much

    #1264999

    Hi,
    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;
    }

    This is the expected results
    2020-12-04_061916.jpg

    Best regards,
    Mike

    #1265036

    Hi 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.

    #1265168

    Hi,
    Please include an admin login in the Private Content area.

    Best regards,
    Mike

    #1265197

    Hi 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.

    #1265202

    P.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 advance

    #1265205

    Hi,
    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.
    2020-12-05_135917.jpg
    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,
    Mike

    #1265556

    Hi 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.

    #1265778

    Hi,
    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>

    2020-12-08_084510.jpg

    Best regards,
    Mike

    #1265967

    Hi 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

Viewing 30 posts - 1 through 30 (of 33 total)
  • The topic ‘text over image and dotted border’ is closed to new replies.