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 Add more variety for your Divi header (12 premade styles): https://header.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 Use modules from the Extra theme with the Divi Builder: https://divi.help/link-forums/divi-extra.163/
  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 Power up your Divi sites with tons of new functionalities: https://divipowerful.divi.help/
  6. andalltha

    andalltha Member

    Yes it does! Thank you very much!
     

Recommended Divi Hosting