MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    Make Center Area Less Wide

    Custom CSS
    4
    10
    691
    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.
    • amarand
      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
        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

        Create a working config
        How to add modules

        amarand 1 Reply Last reply Reply Quote 0
        • amarand
          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
            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

            Create a working config
            How to add modules

            amarand 1 Reply Last reply Reply Quote 0
            • amarand
              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 H 2 Replies Last reply Reply Quote 0
              • S
                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

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • H
                  hango @amarand last edited by

                  @amarand put in custom.css

                  .region.bottom.right, .region.bottom.left,
                  .region.top.right, .region.top.left {
                  	width: 40%;
                  }
                  
                  .region.bottom.center, .region.top.center {
                  	width: 20%;
                  }
                  
                  H 1 Reply Last reply Reply Quote 0
                  • H
                    hango @hango last edited by

                    This post is deleted!
                    BKeyport 1 Reply Last reply Reply Quote 0
                    • BKeyport
                      BKeyport Module Developer @hango 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"

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        hango @BKeyport last edited by

                        @bkeyport this works too

                        .region.bottom.center, .region.top.center {
                        	width: 20%;
                        }
                        

                        and then left and right split remaining 80% in half, but it also depends on what kind of modules you have on the left and right side that can require more or less width

                        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