Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Forced margins on rows

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    2
    4
    298
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Pierre SULPICE
      Pierre SULPICE last edited by

      Hello,

      Sorry I've been off for a while, soon I'll get back on my topics and help to answer again ^^"

      I have problem with the margin on rows that always come back and force themselves set at "!important".

      I want to dynamically change it but :

      • If I do it in CSS, the default one (in !important) takes the lead
      • If I change it in javascript, it changes so fast that the html ones take the lead some milliseconds after....

      How to cancel the important row's margin ? Without setting any timers and without creating a new div on my own please :/, just cancelling the row's margin.
      I tried to fully delete it (page builder + code) but it always comes back.

      Thanks !
      Best regards,

      1 Reply Last reply Reply Quote 0
      • Wassim
        Wassim last edited by

        Hello,

        Welcome back, wish everything's going well for you!

        All elements having this class "dynamic-sized-element" will have it's padding and margin set by its attributes :

        • padding-screen-direction
        • margin-screen-direction

        So, you can either write those attributes in JS and call :

        resizeMarginAndPaddingForElems();
        

        OR

        doing it by yoursel removing the class, and setting the CSS you want

        Pierre SULPICE 1 Reply Last reply Reply Quote 1
        • Pierre SULPICE
          Pierre SULPICE @Wassim last edited by

          @Wassim removing the class and putting mine that does it the way I wanted worked like a charm, thanks a lot !

          Yes everything is goind well well thanks a lot, it's honestly thanks to AppDrag, even with those very tiny flaws here and there, there is everything to resolve them, so it's always fine ^^

          Good day,
          Best regards,

          1 Reply Last reply Reply Quote 1
          • Wassim
            Wassim last edited by

            Great!

            Thank you very much 🙏

            Have a nice day

            1 Reply Last reply Reply Quote 0
            • First post
              Last post