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
      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