Read the statement by Michael Teeuw here.
Display the modules exactly on the screen? Define X and Y Coordinate in config.js file?
-
Hello everybody,
is there a way to display the modules exactly on the screen? For example:
The config.js file should look like this:
Module 1:
size:
Coordinate:
x:
y:Module 2:
size:
Coordinate:
x:
y:Many thanks for your help.
-
Should be possible through css. Haven’t tried this myself, but it should work:
.clock { position: absolute; left : 400px; top : 100px; }Add it to MagicMirror/css/custom.css
I think you can use right and bottom instead of left and top also.
-
@pi-user there is no built in support… the design is a bunch of different areas, and the content should NOT be screen location specific…
see the index.html for the css area layout
each area is a stack, 1st in config.js in that area at the top of that area, next under it, next under that…
-
@retroflex Thank you for your answer
-
@sdetweil Thank you very much
-
Should be possible through css. Haven’t tried this myself, but it should work:
.clock {
position: absolute;
left : 400px;
top : 100px;
}
Add it to MagicMirror/css/custom.cssI think you can use right and bottom instead of left and top also.
That will fail if a parent element is set toposition: relative.
Then this element will arrange itself absolutely INSIDE the parent element/region.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login