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

Overriding Divi styles

Discussion in 'Free Divi Community Forum' started by Xoxa, Apr 26, 2023.

  1. Xoxa

    Xoxa New Member

    Hello Diviers,
    Maybe someone here can help me, I'm having trouble overriding the original styles of certain elements specifically with a header that I created from scratch, mainly with margins, my header contains two menus and this is unavoidable by the nature of the site, these behave as expected in page views, so no problem there, but for "error 404" I have created a view from the Theme Builder and in this case it is impossible to override the "margin-left:auto!important" from the menus , which in my case needs to be 0, I have tried my directives from the style.css in my child theme and from the custom css in "Theme Options" (besides from the module options and css of course) but for the 404 the styles are loaded from cached files like this one:

    et-core-unified-cpt-1004.min.css

    not inline like all my other pages... I don't know how to change this behavior nor how to override the values in that file which is the last css loaded to the page.

    Something similar happens on my other pages but only with the views below 480px, styles can't be overridden because they are being taken from a cached file called et-divi-dynamic-tb-1004-tb-30-23.css

    I guess I need to place my style.css last in the loading queue, probably that could fix all my styling problems, any hints would be greatly appreciated!

    PS: Already tried clearing the Static CSS File Generation and disabling and enabling dynamic styles with no success...
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Beautifully crafted Divi layout packs for you to kick start your Divi sites:View Demo
  2. Xoxa

    Xoxa New Member

    Here's a view of the styles from the browser inspector without Static CSS and without Dynamic Styles

    [​IMG]
     
  3. Divi.Help

    Divi.Help Administrator
    Staff Member

    I believe the margin is added through your menu module alignment option. Currently, your menu module is set to be align to the right. You should click the right module alignment again to disable it & the margin left auto, margin right 0 won't be added to your site.
     
    1. PRO MEMBER PERKS Divi Powerful Child Theme - Power up your Divi sites with tons of new functionalities & premade elements:Learn More