MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Hello World modul

    Development
    2
    5
    3148
    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.
    • G
      gismo2006 last edited by

      Hi, a little questions. If I use the config option text: “Hello World” in the Hello World module fpr example. I have the problem the text Hello World will display to big. My question how can i config the hight of this Words? I have try the html parameter but they produce only misstakes. I found out then I write
      between the Word they will past the second word in a new line. Because of that i think maybe html code will work. But no.

      greets gismo

      strawberry 3.141 1 Reply Last reply Reply Quote 0
      • strawberry 3.141
        strawberry 3.141 Project Sponsor Module Developer @gismo2006 last edited by

        @gismo2006 you could use the predefined classes from main.css like

        text: "<div class='small'>Hello World</div>"
        

        or

        text: "<div style='font-size: 14px;'>Hello World</div>"
        

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • G
          gismo2006 last edited by

          OK, thank you. Dud I understand right? I have to create in my module folder a file called main.css? And there I have to put your code? Is this right? Will it load them alone or have I to put some code in my *.js file to? Sorry, but I never worked whit css 🙂

          Greets gismo

          strawberry 3.141 1 Reply Last reply Reply Quote 0
          • strawberry 3.141
            strawberry 3.141 Project Sponsor Module Developer @gismo2006 last edited by

            @gismo2006 you mentioned that you want to put this in the helloworld module, so my example should go into the config

            {
                module: "helloworld",
                position: "bottom_bar",
                config: {
                    text: "<div class='small'>Hello World</div>"
                }
            }
            

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 0
            • G
              gismo2006 last edited by

              Oh OK sorry I I haven’t understand you right. It was my mistake. I will try your post tonight. Thank you again

              Greets gismo

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy