1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
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

Adjusting positioning of Button One in Full Width header

Discussion in 'Free Divi Community Forum' started by Nick Sharples, Nov 5, 2018.

  1. Nick Sharples

    Nick Sharples New Member

    Hi,

    My site is www.tadworthacupuncture.co.uk

    I would greatly welcome some advice on how to move the 'BOOK AN APPOINTMENT' Button One on the full width header from the left aligned position to a bottom centre position of the header. On the home page the text needs to remain where it is but on other pages without text in the header it can be centred and lowered down the image.

    I assume that CSS is required but my knowledge is not sufficient to create that myself, although l can adjust settings once the CSS is in place.

    Many thanks,

    Nick
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Your site is showing Coming Soon page.
     
  3. Nick Sharples

    Nick Sharples New Member

    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try to add this CSS in Divi -> Theme Options -> Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  5. Nick Sharples

    Nick Sharples New Member

    Thank you . However, this doesn't seem to have made any difference at all. Have I got the right spaces in between bits of CSS?

    Thanks,

    nick
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade promo bar / notification bar with close button for your Divi site without using any plugins:View Demo
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    From your site, I see some weird character:

    body:not(.page-id-41) .et_pb_fullwidth_header .header-content{text-align:center!important;margin-top:300px!important}

    Try to remove the spaces / character before the body:not(...
     
  7. Nick Sharples

    Nick Sharples New Member

    Hi,

    I am afraid I am still having problems. I need to align the Book an Appointment button (Button One) bottom and centre of each of the full width header images, and for them to appear in the same place on tablet and mobile.

    I am using this CSS at the moment, which is clearly wrong:

    *Change height of full width header*/


    .et_pb_fullwidth_header .et_pb_fullwidth_header_container .et_pb_button_one {
    text-align:center!important;margin-top:350px!important
    }
    Thanks.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  8. Divi.Help

    Divi.Help Administrator
    Staff Member

    As mentioned previously, this CSS below will align the button to the center for all pages, except for homepage:

    body:not(.page-id-41) .et_pb_fullwidth_header .header-content {
    text-align: center!important;
    }

    If you wish to make the homepage button center as well, then try the below:

    body .et_pb_fullwidth_header .header-content {
    text-align: center!important;
    }
    body .et_pb_fullwidth_header .header-content .et_pb_header_content_wrapper {
    text-align: left!important;
    }
     
  9. Nick Sharples

    Nick Sharples New Member

    Thank you - that has worked perfectly. I am not sure why it didn't do so the first time. I couldn't find the errant symbols you showed me.

    One last request please - how do I now align the centred buttons with the bottom of the header image so there is a bottom margin of say 90px. Many thanks.
     
    1. PRO MEMBER PERKS Divi.Help One-Page Layouts - Beautifully crafted one-page Divi layouts just for you:View All Layouts
  10. Divi.Help

    Divi.Help Administrator
    Staff Member

    Similar to what you post earlier:

    .et_pb_fullwidth_header .et_pb_fullwidth_header_container .et_pb_button_one {
    margin-top: 550px!important;
    }

    Just adjust the margin to your liking.
     
  11. Nick Sharples

    Nick Sharples New Member

    Thank you so much.

    Sorry to be a pain but resolving one issue seems to lead to others. The top margin setting of a specific number of pixels works well in desktop mode, but when viewed in tablet or phone it increases the depth of the header to an unacceptable depth. Is there a way of making the position relative to the bottom of the container rather than a set number of pixels?

    Or perhaps alternatively, because i have a different header for desktop and another for tablet/phone, could one use a different CSS snippet in the Section CSS in the Advanced tab for the tablet/phone header?

    Thanks again for all your help - it is a brilliant service!

    size of the QUOTE="Divi.Help, post: 4060, member: 58"]Similar to what you post earlier:

    .et_pb_fullwidth_header .et_pb_fullwidth_header_container .et_pb_button_one {
    margin-top: 550px!important;
    }

    Just adjust the margin to your liking.[/QUOTE]
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade slide in bar design for your Divi site without using any plugins:View Demo
  12. Divi.Help

    Divi.Help Administrator
    Staff Member

    Definitely. You can use the CSS below:

    @media screen and (max-width: 700px) {
    .et_pb_fullwidth_header .et_pb_fullwidth_header_container .et_pb_button_one {
    margin-top: 350px!important;
    }
    }

    Just adjust 700px to your desired breakpoint. And adjust the margin-top to your desired value.
     
  13. Nick Sharples

    Nick Sharples New Member

    [/QUOTE]
    Thank you. Does that go in the Divi Options CSS or the Section CSS?
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring unique comment design on single blog post page:View Demo
  14. Divi.Help

    Divi.Help Administrator
    Staff Member

    Divi -> Theme Options -> Custom CSS