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.

    Hello World modul

    Scheduled Pinned Locked Moved Development
    5 Posts 2 Posters 4.3k 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.
    • G Offline
      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.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        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 Offline
          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.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            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 Offline
              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

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