Read the statement by Michael Teeuw here.
Border/Not fullscreen
-
I was having a problem with there being a border all around my smart mirror when MagicMirror opened (OS runs full screen, pi is set to monitors native resolution and overscan is off). I found another thread suggesting adding this to custom.css
body { margin: 20px; /* This will give you a 20px border. */ height: calc(100% - 40px); width: calc(100% - 40px); }
What I have in the file now is this, but it got rid of the top and left border but the bottom and right became 2x as thick as they were to begin with
body { margin: 0; height: 100% (100% - 40px); width: calc (100% - 40px); }
Thoughts/suggestions?
Thank you
-
How about a 1 pixel border?
body { margin: 1px; height: calc(100% - 2px); width: calc(100% - 2px); }
-
As above or no border at all
body { margin: 0; height: 100%; width: 100%; }
You only add the ( ) part when using calc
-
I had to add a small border because I had to tape the bezel of my monitor and got a small overlap on to the screen. What I have now is
body { margin: 3px; height: 100% (100% - 40px); width: 100% (100% - 40px); }
This makes a nice flush to the edge border on left and top, but I still have a very thick border on the right and bottom. I’ve noticed that if I push the width of my iFrame module passed 100, it gets it closer to the edge, but all the modules are obviously scaling off the custom .css. So for example, the compliments module that I have positioned lower center, is now technically ‘center’ from listening to the css but offset left from the iFrame module that’s been pushed out passed the right border.
-
Hey, I’m an idiot. I took out the parenthesis and fixed it. I’m not a coder by any means, which is why I need people like you. I realize now the meaning of the (), took it out and fixed it. Thank you.