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.

    custom.css ......body???

    Scheduled Pinned Locked Moved Custom CSS
    42 Posts 3 Posters 7.5k 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 Do not disturb
      sdetweil @piki
      last edited by

      @piki yes,
      you should be able to use the developers window to add that to test out

      select the body element and add in top right

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • P Offline
        piki
        last edited by

        I copied it directly into custom .css…but it still doesn’t work

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @piki
          last edited by

          @piki can you show the custom.css entry

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • P Offline
            piki
            last edited by

            body {
            background-image : uurl(‘http://localhost:8080/sku.jpg.’);
            background-size: cover;

            }

            S 2 Replies Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @piki
              last edited by

              @piki said in custom.css ......body???:

              uurl

              only url

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • P Offline
                piki
                last edited by

                I fixed it, but the image still doesn’t appear

                body {
                background-image : url(‘http://localhost:8080/sku.jpg.’);
                background-size: cover;

                }

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @piki
                  last edited by

                  @piki and if you open the developers window, elements tab , select the body element

                  is the css selected
                  and are there any errors? (in the console tab)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @piki
                    last edited by

                    @piki said in custom.css ......body???:

                    /sku.jpg.');

                    you also have a trailing . in the image name, ‘jpg.’

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      piki
                      last edited by

                      Failed to load resource: the server responded with a status of 404 (Not found) sku.jpg.:1

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @piki
                        last edited by

                        @piki still the trailing comma
                        but, I tested here, needs to be in a subfolder of MagicMirror, config worked

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          piki
                          last edited by

                          yes, I also have the ending “.jpg” in the image name

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @piki
                            last edited by

                            @piki no… your copy of custom.css said

                            body {
                            background-image : uurl(‘http://localhost:8080/sku.jpg. <<<<<<<<<—’);
                            background-size: cover;

                            }

                            see the dot AFTER .jpg

                            also, you need to move the image to some subfolder

                            this worked for me(random jpg)

                            body {
                                background-image : url('http://localhost:8090/config/scan-uuid.jpg');
                                background-size: cover;
                            }
                            

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              piki
                              last edited by

                              I put the sku.jpg file in the config directory…and it works…thank you very much

                              one more question, how do I change the color of the clock and weather module to black?

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @piki
                                last edited by

                                @piki said in custom.css ......body???:

                                one more question, how do I change the color of the clock and weather module to black?

                                you will have to change/override the CSS for those…
                                in each module folder is the defined css (don’t change there, override in custom.css

                                if not there(same for every module), then examine the elements in the developers window elements tab

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  piki
                                  last edited by

                                  great, and if I want “Bolt” bold text instead of thin?

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @piki
                                    last edited by sdetweil

                                    @piki see main.css for the defined colors and styles

                                    if nothing there that works for you, then you have to define your own (in custom.css)

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      piki
                                      last edited by

                                      if I would like to move the clock or the weather more towards the center from the edge, do I have to write it in config.js? is that so

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @piki
                                        last edited by

                                        @piki in config.js are only the defined positions.
                                        see https://forum.magicmirror.builders/topic/286/regions?_=1732038547578

                                        otherwise you have to use css to adjust things.

                                        note that main.css defines margins around modules and the overall screen

                                        so you may have to adjust margins

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          piki
                                          last edited by

                                          thank you very much for all the advice so far…you have helped me a lot

                                          1 Reply Last reply Reply Quote 0
                                          • P Offline
                                            piki
                                            last edited by

                                            can be changed language in openmeteo weather?

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • 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