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.

    change default position of module

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 2.8k 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.
    • D Offline
      davide
      last edited by davide

      I’m going crazy … I’m trying to change position of newsfeed from bottom center to bottom left … Even If I’ve read tons of posts, I was’t able to do it via custom.css.
      So i tried with config.js, and specifing the following :

       {
                              module: "newsfeed",
                              position: "bottom_left",
      
      

      it’s ok, BUT before that the first line was aligned to the center. Now it’s aligned to left. How to solve that ? Via CSS?

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        ninjabreadman @davide
        last edited by

        You’re right; for what you were trying to do, you need to use position in config.js. From what I understand you’re trying to do – I could be wrong – you can put this in your custom.css:

        div.region.bottom.left div.module.newsfeed {
          text-align: center;
          max-width: 500px; /* change to whatever width you want */
        }
        

        This will make any newsfeed module in the bottom_left position still center its text.

        By default, any module put against the sides align their text accordingly. This will override that behaviour. You will need max-width otherwise the module will simply (at least, in my testing) span the whole screen.

        nbm

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        1 Reply Last reply Reply Quote 2
        • D Offline
          davide
          last edited by

          great! that’s what I was looking for !!! thanks a lot!

          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 Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy