A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Two side by side modules in the same region
-
@sdetweil sure have been working on custom.css on other modules. Just need some guidance and will figure it out. Was just wondering where to have this code and how to define both modules
if(this.config.float!== ""){ // get the MM div container for this module (parent of our wrapper div) document.getElementById(this.identifier).style.float=this.config.float; // adjust the border between instances if(this.config.spacing !==""){ if(this.config.float === "left") document.getElementById(this.identifier).style.marginLeft=this.config.spacing else if(this.config.float === "right") document.getElementById(this.identifier).style.marginRight=this.config.spacing } }
-
@miniashman i was showing u code from one of my modules, its not complete as it was shown
but u can use style
float and left or right
https://www.w3schools.com/cssref/pr_class_float.asp
to make the module content move
-
@sdetweil cool… will experiment :thumbs_up: