1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, 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

Solved How to place Category button on blog

Discussion in 'Free Divi Community Forum' started by Russell Logan, Apr 22, 2020.

  1. Russell Logan

    Russell Logan New Member

    I have tried to customize my blog by putting the category on a button, but can't get the positioning consistent on mobile, or even when the images don't line up. I guess it should be relative to its orginal position, but I may have the wrong containers targetted. Button is not even showing on second row. Could someone please check and possibly correct the coding. Thanks Russell.

    Site page: http://russelll12.sg-host.com/?page_id=234291

    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade before / after image slider for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Tried to view your site, but it returned 404 error.
     
  3. Russell Logan

    Russell Logan New Member

    I was working on it for a moment or two. Would that cause 404? Sorry. I checked the link in OP. It works for me. Cheers Russell.
     
    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
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Perhaps you haven't published your page yet. And it's still in draft mode.
     
    1. PRO MEMBER PERKS Divi.Help Layout AI Generator - Try the power of AI to generate a custom Divi layout for you:Try Now
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    This is because the blog image changes size on different screen. The best way to make it look consistent is to place the it at the top left / right side of the blog image.
    Code:
    Log In or Sign Up to view this code.
    To fix this, try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  6. Russell Logan

    Russell Logan New Member

    That worked. Thanks. I take it that there is no way to have the button half over the image and half over the body containers?
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  7. Divi.Help

    Divi.Help Administrator
    Staff Member

    Yup. You can't achieve that with position absolute.

    But you might be able to achieve it by using flex.
    Code:
    Log In or Sign Up to view this code.
     
  8. Russell Logan

    Russell Logan New Member


    Flex works well. Thank you. A minor issue is the 'a:hover' state for the button. At the moment I have:

    Code:
    Log In or Sign Up to view this code.
    It worked before, but not with flex. Looks like it applies the border-bottom to the button itself, not the text.
     
    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
  9. Divi.Help

    Divi.Help Administrator
    Staff Member

    For this case, you will need replicate it using pseudo element.

    Try the below CSS:
    Code:
    Log In or Sign Up to view this code.
     
  10. Russell Logan

    Russell Logan New Member

    Nearly there, the underline shows in the right place but extends past the text.
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  11. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try this CSS:
    Code:
    Log In or Sign Up to view this code.
     
  12. Russell Logan

    Russell Logan New Member

    All good. I've been trying to follow what you did and sort of understand a lot of it, except this last bit. Anyway, thanks for your patience. Cheers Russell.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo