MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Move middle_center below other regions?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 2 Posters 1.0k Views 2 Watching
    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.
    • S Offline
      smartroad
      last edited by

      Does anyone know if it is possible to reorganise the rendering order of regions (z position)? I have a module that displays an image of the Earth (MMM-Globe) and would like it to be behind the left and right regions, currently it puts the image above them.

      I have tried fullscreen_below but that just shows the image in the top left corner. Or is there a way to get that to show in the middle?

      No idea what to search for in DuckGoogBing as I am sure I am using the wrong terms :(

      Any assistance would be gratefully received!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @smartroad
        last edited by

        @smartroad you can add an entry to custom.css to set you module content in a lower z-position

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          smartroad @sdetweil
          last edited by

          @sdetweil Thanks for the reply. Been playing with CSS (and searching for what to do). I’ve tried

          .region.middle.center {
          z-index: -1;
          }
          

          If I change z-index to anything other than 0 the contents dissapear. I’m not that conversant with CSS and am probably miss understanding the sites I have been reading as to how it works

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @smartroad
            last edited by

            @smartroad well, you probably didn’t want to push ALL of middle center back… but maybe…

            .modulename .module-content { 
                z-index: -1;
            }
            

            replace modulename with the actual module name

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              smartroad @sdetweil
              last edited by

              @sdetweil got there in the end!

              ended up having to also add position to make the z-index work and also add both to the other modules I wanted it behind (but with a higher z-height).

              Ended up with:

              .module.weather.weather{
              position: relative;
              z-index: 1;
              background-color: rgba(0,0,0,0.5);
              padding: 10px;
              border-radius:15px;
              }
              
              .module.MMM-Globe.MMM-Globe .module-content{
              position: relative;
              z-index: -50;
              }
              
              .module.calendar .module-content{
              position: relative;
              z-index: 1;
                background-color: rgba(0,0,0,0.5);
                padding: 10px;
              border-radius:15px;
              }
              

              I also added in a semitransparent background to make the text stand out against the image.

              Many thanks for your help and pointers :D

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @smartroad
                last edited by

                @smartroad you don’t need .module too

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  smartroad @sdetweil
                  last edited by

                  @sdetweil :thumbs_up_light_skin_tone: thanks :D

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @smartroad
                    last edited by

                    @smartroad https://forum.magicmirror.builders/topic/17773/calendar/8?_=1683543891403

                    that is a copy/paste of a module’s content from the developers window.

                    note that the class=" module and modulename" both occur only on the same element, so using just .modulename will select the same content as using both

                    when there is no space between the selector clause class names, this means BOTH must occur on the same element, and in this case there is only one of those to select.

                    and just as food for thought, it takes a little more cpu cycles to look up TWO things together than just one.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy