Read the statement by Michael Teeuw here.
Alert box location
-
Hey guys…
Anyone manage to get the alert box location to be center/center instead of center/top ?
-
@PointPubMedia Just in case, the name of the position value is “middle_center”. Not “center_center”. Are you getting any errors when you change the position?
-
@bhepler I tried… but looks like the position value have no effect on the alert module…
-
the alert module is a bit of an odd one. It has a specific config option for the position:
modules: [ ... { module: 'alert', config: { position: "right" } } ]But this will only allow you to change it from center to left or right.
For more info, check: https://github.com/MichMich/MagicMirror/tree/master/modules/default/alert
-
@MichMich yeah already saw that… but I would like to display it on the center of the height too!
My MM is a 42" monitor in portrait… so having the alert at the top is not very usefull!
Any way the module alert can have another option to put it center/center instead of top/left,right,center ?
-
I just did a quick test on my laptop.
Edit~/MagicMirror/css/custom.cssand add the following:.ns-box { top: 50%; }This should move the alert box to the vertical center. You can use the config position @MichMich mentioned to move to the horizontal center.
-
@yawns AWESOME ;)
thanks!
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