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 Can't horizontally align modules in a column

Discussion in 'Free Divi Community Forum' started by andalltha, Jun 28, 2020.

  1. andalltha

    andalltha Member

    Hi there!

    I have a problem on this page I build with Divi. I can't horizontally align the modules in the right column of the row. I inspected the element and I can't get rid of the two ".et_pb_row_inner .et_pb_column.et-last-child, .et_pb_row_inner .et_pb_column:last-child{margin-right: 0!important;}" bits of CSS featured in the style.css file.

    What should I do to fix this?

    Thank you, have a nice day!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. Problemizer.com

    Problemizer.com Divi Expert

    You can try with this CSS.

    #main-content .et_pb_row .et_pb_column.et-last-child {
    margin-right: 5.5%!important;
    }
     
  3. andalltha

    andalltha Member

    Woohoo! It wrks. Thank you!
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add more varieties for your Divi header (12 premade styles) + menu hover effects:Learn More
  4. andalltha

    andalltha Member

    But I just noticed this code makes the right margin appear on the home page too while the row with the CD cover and the left and right grey background should be fullwidth. How can I fix it?

    Have a nice day!
     
  5. Problemizer.com

    Problemizer.com Divi Expert

    Sorry, this should do the trick.
    .page-id-25 #main-content .et_pb_row .et_pb_column.et-last-child {
    margin-right: 5.5%!important;
    }
     
    1. PRO MEMBER PERKS Divi Block Pro - Powerful Divi header builder for you to mix & match premade header design, mobile menu & more:Learn More
  6. andalltha

    andalltha Member

    Yes it does! Thank you very much!