Mirror smaller than screen (by 6cm) - Possible to alter the image size?



  • Hi there

    My mirror is 42 x 27cm, but my screen is 48cm x 27cm, is it possible to reduce the image size by 6cm, in order to make this fit within the mirror itself?

    As for the excess screen, not an issue, as will be covered at the bottom with a piece of wood (to hide the Pi, cables, etc).


  • Module Developer

    Change the margins in the css file until the modules fit within the frame, should be the easiest way to deal with it.

    add

    body { margin: marginsize }

    To the custom.css and change the margins until you get it to fit

    or

    body {margin-left: marginsize; margin-right: marginsize}

    If you only want to change the width of the displayed area



  • @broberg Thanks, added that to custom.css, however the top displays perfectly (with 250px margin for the top. I added margin-bottom, and cannot for the life of me get the standard module news ticker to appear. The rotating compliments works and displays, but the news ticker is nowhere to be seen.


  • Moderator

    Please try this in custom.css:

    body {
      margin-top: 250px;
      margin-bottom: 250px;
      height: calc(100% - 500px); 
    }
    

    That should give a 250px margin from the top and the bottom and it should center the content on screen again. If you play with margin-top or margin-bottom values please adjust the height calculation.


  • Module Developer

    @yawns said in Mirror smaller than screen (by 6cm) - Possible to alter the image size?:

    Please try this in custom.css:

    body {
      margin-top: 250px;
      margin-bottom: 250px;
      height: calc(100% - 500px); 
    }
    

    That should give a 250px margin from the top and the bottom and it should center the content on screen again. If you play with margin-top or margin-bottom values please adjust the height calculation.

    Yes, yawns are correct, sorry I missed that.



  • @yawns Thank you, it works flawlessly!