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 Fullpage image over two columns

Discussion in 'Free Divi Community Forum' started by mathivh, Mar 12, 2020.

  1. mathivh

    mathivh New Member

    Basically I wish to have two images side-by-side to fill out the entire screen. I currently have a fullwidth section consisting of a row with two columns of equal width. I chose to have two columns since I would like the seperation between the images to be left-right on desktop and tablets, but upper-lower on mobile.

    On desktop it currently looks like this:

    Problem: The images are too tall which gives a scrollbar on the right side.
    upload_2020-3-12_13-57-46.png

    Mobile it looks like this:
    upload_2020-3-12_13-58-4.png
    Problem: The images don't fill out the screen vertically which produces a white area below them.

    Currently the settings for the background image for each column are:
    image size: cover
    image position: center (top-center for column 2)
    image repeat: no repeat

    The spacing settings of the row currently are:
    custom margin: 0 0 0 0
    custom padding 0 0 0 0
    column 1 custom padding: 25% 25% 0 0
    column 2 custom padding: 25% 25% 0 0

    Sizing settings of row:
    Fullwidth: yes
    custom width: no
    custom gutter width: yes (= 1)
    equalize column heights: yes

    How do I achieve this?

    Thanks in advance!

    Sidenote: After this problem has been solved I'd like to also have an image (logo) show up top-center on desktop, and center-center on mobile.
     
    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

    Kindly share your URL.
     
  3. mathivh

    mathivh New Member

    https://factumprojectontwikkeling.be/splash-screen/ (password: "mathivh").

    I seem to have it working partially. I might have created it in a way that's not really considered good-practice, I'm not sure.
    The problem I have now is that when the screen size decreases, the buttons move upwards, and the company logo moves downwards. I'm trying to get them to stay on the same height (relative to the background-image) on all desktop screen sizes.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  4. mathivh

    mathivh New Member

    By using "vh" instead of "%" in margin of the buttons and company logo, it now stays more or less constant when resizing. I'm still not sure if I'm doing it in a way that won't give any unexpected results for some.
     
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    Looks fine to me. vh & vw would be a better choice across screen size.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade dynamic background hover design for your Divi site without using any plugins:View Demo
  6. mathivh

    mathivh New Member

    Alright, I'll stick to those units then, thanks.

    I'm now trying to get our company logo to touch the top of the page, and to not resize across different desktop screen sizes. How would I go on to get that?
     
  7. Divi.Help

    Divi.Help Administrator
    Staff Member

    What about using position fixed?

    Try to go to your Image module settings > Advanced > Custom CSS > Main Element & add:
    Code:
    Log In or Sign Up to view this code.
    Try to go to your image module & set the max-width to be 216px
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade logo carousel design for your Divi site without using any plugins:View Demo
  8. mathivh

    mathivh New Member

    That works just great, thanks a lot!

    For mobile I'd like the layout to be similar but in a horizontal-oriented fashion, like so:
    upload_2020-3-16_15-12-58.png
    Would I be best to create a second section and set visibilities according to device?
     
  9. Divi.Help

    Divi.Help Administrator
    Staff Member

    Seems like you already did that.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  10. mathivh

    mathivh New Member

    Correct! I gave it a try, and it seems to be working out fine. Thanks for you help!