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

Solved Responsive header image grid

Discussion in 'Free Divi Community Forum' started by lisakaye, Aug 14, 2018.

  1. lisakaye

    lisakaye New Member

    Hi there! I am battling to set up a responsive grid for my header images. My url is http://www.eppeidev.kdesignhouse.co.za/wp/ In the first example the widths/heights shift when the window size does - it doesn't stay lined up. In the last example I am unable to get the images to fill the entire width of the page.

    The effect I'm looking for is to recreate the header of https://www.pmi.com/ - did't think this would be so difficult to set up.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Instead of image module, you might want to use text module & add the image as background image. Then set the text module padding top as 242.5px.
     
  3. lisakaye

    lisakaye New Member

    Thank you for your response. I tried using a text module instead for the 2 blocks on the right but the main one needs to be a slider. Unfortunately there are still vertical alignment issues when viewed on a screen smaller than a desktop :(
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    For the slider, you can remain as slider. As what I see from your site, you should put any text in the text module. Just the background image will do. And for your background image size, set it as Cover in the settings. See screenshot below.

    upload_2018-8-16_11-28-41.png
     
  5. lisakaye

    lisakaye New Member

    Thank you - I have changed it to Cover. Unfortunately the images still aren't lining up vertically on ANY size screen... I have added the following code but still am having no luck :(

    2 text modules -> Advanced tab -> Custom CSS -> Main Element:
    height: 50%;

    Then adding the following Custom CSS (to theme options):
    .et_pb_image .et_pb_image_wrap,
    .et_pb_image .et_pb_image_wrap img,
    .et_pb_slider .et_pb_slide {
    height 100% !important;
    }
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade card carousel design for your Divi site without using any plugins:View Demo
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    Typo in the previous post: You shouldn't put any text in the text module.

    But if you want to put the text, you need to have the below CSS:
    Code:
    Log In or Sign Up to view this code.
    And you need to remove the height: 50%; that you added.
     
  7. lisakaye

    lisakaye New Member

    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  8. lisakaye

    lisakaye New Member

    I've been fiddling around and am SO, SO close! The first/top grid and the one below are the exact same (duplicated)... but something is causing the images to be slightly misaligned on the first grid. (It's not the top padding - removed this and it made no difference.) Any ideas?
     
  9. Divi.Help

    Divi.Help Administrator
    Staff Member

    You might want to just put height: 242.5px; instead of height: 50%;
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade rolling text design for your Divi site without using any plugins:View Demo
  10. lisakaye

    lisakaye New Member

    Finally got this working! Thank you SO MUCH for your help.