• 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.

Hello World modul

Scheduled Pinned Locked Moved Development
5 Posts 2 Posters 3.7k 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 Oct 27, 2016, 10:18 AM

    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

    S 1 Reply Last reply Oct 27, 2016, 10:23 AM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @gismo2006
      last edited by Oct 27, 2016, 10:23 AM

      @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 Oct 28, 2016, 2:57 PM

        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

        S 1 Reply Last reply Oct 28, 2016, 3:04 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @gismo2006
          last edited by Oct 28, 2016, 3:04 PM

          @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 Oct 28, 2016, 3:06 PM

            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
            1 / 1
            • First post
              2/5
              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