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.

    Using MMM-Widget for images

    Scheduled Pinned Locked Moved Utilities
    13 Posts 3 Posters 3.2k Views 3 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.
    • N6NGN Offline
      N6NG @wishmaster270
      last edited by

      @wishmaster270 Is their any way to size the img?
      Dennis

      wishmaster270W 1 Reply Last reply Reply Quote 0
      • wishmaster270W Offline
        wishmaster270 Module Developer @N6NG
        last edited by

        @N6NG I put a small section about styling to the readme.
        It is done via custom.css

        .embed .embeded {
            width: 800px;
            height: 400px;
        }
        
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @wishmaster270
          last edited by

          @wishmaster270 you should always include your module name 1st, in case some other module uses the same sub classes

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          wishmaster270W 1 Reply Last reply Reply Quote 0
          • wishmaster270W Offline
            wishmaster270 Module Developer @sdetweil
            last edited by

            @sdetweil Hi Sam, your right. Did avoid this in the past because it was a problem if someone copied the module to have multiple instances. As most of my modules provide multi instance now this shouldn’t be a problem anymore.

            I will check the css files of my modules and add prefix all CSS with MMM-ModuleName.

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

              @wishmaster270 and one can make use of the module classes property to make unique names for each of the instances so that you could Target the CSS to the appropriate instance

              but like copying, the css must be updated w the new class name selector

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • 1
              • 2
              • 1 / 2
              • 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