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.

    Make Center Area Less Wide

    Scheduled Pinned Locked Moved Custom CSS
    10 Posts 4 Posters 1.7k 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.
    • amarandA Offline
      amarand
      last edited by

      Is there an easy way to make the center area less wide?

      I don’t have any modules placed in the center, so it’s a lot of wasted space (1/3rd of the overall space?) and I’d like to reclaim some of that. I’m also not using it as a traditional “mirror” where you’d want to see yourself in the center. It’s for informational display only.

      Is there a way to change it from 1/3 of the overall space to, say, 1/4 or something?

      I’m assuming this is a “Custom CSS” thing, but I can’t figure out how to make that happen. Is there a tutorial that explains how to resize the columns (not the modules themselves, but the relative width of the columns that contain the modules).

      Thanks!

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @amarand
        last edited by

        @amarand no tutorial that I am aware of… but there are regions/positions defined in main.css
        which you can redo in custom.css for those u wish to change

        if u look at index.html you will see the layout and the regions

        a trick for visualizing the spaces

        give each a different background-color setting

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        amarandA 1 Reply Last reply Reply Quote 0
        • amarandA Offline
          amarand @sdetweil
          last edited by

          @sdetweil

          Is there specific custom.css code I need to use, to make the center column narrower, and the right and left columns wider to fit that space?

          S 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @amarand
            last edited by

            @amarand i don’t know, never done it.

            but you’ll see that center is 100% width, so you will have to make a new left edge too.

            for figuring this out read this

            https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1625536307526

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            amarandA 1 Reply Last reply Reply Quote 0
            • amarandA Offline
              amarand @sdetweil
              last edited by

              @sdetweil

              I am so sorry, but is there a MagicMirror related CSS tutorial somewhere that explains all of the possible configuration settings that I can change/override in the custom.css, maybe with examples?

              For example, I agree, I think it’d be awesome to be able to change the column background colors to see how things are adjusting, but so far, I’ve only been able to figure out how to change the entire module area color by adding the following to the body section of my custom.css file:

              –color-background: #800;

              It makes the 60px “gaps” around the outside glaringly obvious (black versus red).

              S ? 2 Replies Last reply Reply Quote 0
              • S Away
                sdetweil @amarand
                last edited by

                @amarand said in Make Center Area Less Wide:

                It makes the 60px “gaps” around the outside glaringly obvious (black versus red).

                no… the body clause set a 60px border around the screen… which individual background colors won’t fill…

                sorry, there are hundreds of settings on the MM ‘web page’

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @amarand
                  last edited by

                  This post is deleted!
                  ? 1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User @Guest
                    last edited by

                    This post is deleted!
                    BKeyportB 1 Reply Last reply Reply Quote 0
                    • BKeyportB Offline
                      BKeyport Module Developer @Guest
                      last edited by

                      @hango That’ll do it, but if I recall correctly, if you set bottom center and top center to 20%, left and right will automatically take up the slack, no need to convert them, conversely, if you set left or right to 40%, the remaining 60% would automatically be split between them.

                      The "E" in "Javascript" stands for "Easy"

                      ? 1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User @BKeyport
                        last edited by

                        This post is deleted!
                        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