• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-Moon module - how to resize?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
9 Posts 3 Posters 321 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.
  • S Offline
    sdetweil @cricket
    last edited by sdetweil May 7, 2025, 6:32 PM May 7, 2025, 6:21 PM

    @cricket well, it doesnt work, so yeh.

    css is

    selector_clause {
         styles to apply
    }
    

    there are three main selector clause types

    starts w dot, means classname, class=“module”
    .module

    starts w pound sign, means id, id=“idstring”
    #idstring

    no prefix, means an html tag , p, h2, table, div, span, …

    for class if there is NO space between the descriptors
    like your .region.bottom_left
    it means applies ONLY to elements with ALL classes specified on that same element at the same time

    there are multiple operators that can help define exactly which element in a content tree you are targeting

    the selector clause selects elements the styles between the {}
    will be applied to. the selector clause ALWAYS selects ALL elements in the document ( web page) that match

    i use this cheatsheet to help me remember
    it used to be one page, but they have broken it out by family now

    https://www.w3schools.com/cssref/css_selectors.php

    many styles are NOT inherited by nested elements
    (width, height)

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    C 1 Reply Last reply May 7, 2025, 6:30 PM Reply Quote 1
    • S Offline
      sdetweil @cricket
      last edited by May 7, 2025, 6:30 PM

      @cricket understood. i am trying to teach you how to do it, so you dont have to wait on anyone! ( over and over)

      there are 1200 modules that do it all differently.

      i’m am just the moderator here. most of the module authors are not active, so we have to figure it out ourselves.

      asking google

      how do i change the size of an image on a web page with css,

      should at least give you the style names you
      might need to use (in dev window and custom.css)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • C Offline
        cricket @sdetweil
        last edited by May 7, 2025, 6:30 PM

        @sdetweil
        Many thanks for this, - you are a scholar and a gentleman. I will sort through this at some point soon.

        1 Reply Last reply Reply Quote 0
        • R Offline
          rkorell @cricket
          last edited by May 8, 2025, 8:02 AM

          @cricket said in MMM-Moon module - how to resize?:

          It appears there is no size option in the module itself. I

          I’ve had the same issue not with size but with alignment and had resolved this within the middle-center region and have used:

          .region.middle.center {
            width: 45%;
           
          }
          

          in custom.css.

          This works for me to position the moon nicely above earth in my implementation.
          Bildschirmfoto von  am 08_05_2025, 09_57_35 08_05_2025, 09-57-35.jpg
          Regards,
          Ralf

          C 1 Reply Last reply May 8, 2025, 3:42 PM Reply Quote 1
          • C Offline
            cricket @rkorell
            last edited by May 8, 2025, 3:42 PM

            @rkorell Thansk for this!

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            1 / 1
            • First post
              9/9
              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