1. HOT Divi Ultimate Header Plugin - More variety for your Divi header: https://header.diviultimate.com/

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. AD Set awesome default design for your Divi single blog page: https://blog.diviultimate.com/
  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. AD Awesome ways to display testimonials in your Divi site: https://divi.help/link-forums/testimonial-slider.148/
  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. AD Replace all Divi-related branding with your own for your Divi site: https://divi.help/link-forums/divi-ghoster.161/
  6. andalltha

    andalltha Member

    Yes it does! Thank you very much!
     

Recommended Divi Hosting