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.css
and 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!