1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Text on Border line with no background

Discussion in 'Free Divi Community Forum' started by DigitalTiger, Jan 30, 2019.

  1. DigitalTiger

    DigitalTiger New Member

    Hello,
    I have a client who wants a border around some text and then along the border he wants the person's name and the border to be broken where the person's name is. I have created the border and the name in separate modules, then given the name module a negative margin so it sits on the border but it sits under the border so that the line runs across the top and I can't remove it.

    Please help me solve this.
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add custom vertical navigation for your Divi site. Turns into slide in menu on mobile:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    It's just a z-index issue. For the name module, try to go to the Module settings > Advanced > Custom CSS > Main Element & add z-index: 10;

    If doesn't work, then try a higher value of z-index & see if it works.
     
  3. DigitalTiger

    DigitalTiger New Member

    That worked and removed the top line of the border which he wants the border to appear on the left and right of the name.
    I made the name 29% width and the border to the left of the name reappeared but as I used padding to offset the name from the right of the screen I am having trouble getting the border to the right to reappear. He wants the name to be about 10percent of the screen from the right hand side and the border to break under the name only.
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add more varieties for your Divi header (12 premade styles) + menu hover effects:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Not sure what you meant. Kindly share your URL.
     
  5. DigitalTiger

    DigitalTiger New Member

    http://v56.ad2.mwp.accessdomain.com/our-team/
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade before / after image slider for your Divi site without using any plugins:View Demo
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    In addition to the z-index, you still need to add position: relative; for the name module. Cause from my side, I still don't see any white background overlapping the line.

    As for your right padding issue, you should use margin instead. If you use right margin then the right border will reappear.
     
  7. DigitalTiger

    DigitalTiger New Member

    That worked. The line was removing in visual editor before but not when I saved it but now it is working both ways. I can't seem to get the name to move to the right now.
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now
  8. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try to go the name module settings & change the margin right settings to 10%.
     
  9. DigitalTiger

    DigitalTiger New Member

     
    1. PRO MEMBER PERKS Divi Mini Cart Pro Plugin - Instantly add 3 different types of mini cart to your Divi site:Learn More
  10. Divi.Help

    Divi.Help Administrator
    Staff Member

    Have you tried to change the margin right of the name module?