• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Two side by side modules in the same region

Scheduled Pinned Locked Moved Solved Troubleshooting
13 Posts 3 Posters 3.4k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    miniashman @sdetweil
    last edited by Apr 20, 2021, 2:53 PM

    @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
    		}
    	}	
    
    
    S 1 Reply Last reply Apr 20, 2021, 3:36 PM Reply Quote 0
    • S Away
      sdetweil @miniashman
      last edited by Apr 20, 2021, 3:36 PM

      @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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Apr 20, 2021, 4:23 PM Reply Quote 0
      • M Offline
        miniashman @sdetweil
        last edited by Apr 20, 2021, 4:23 PM

        @sdetweil cool… will experiment :thumbs_up:

        1 Reply Last reply Reply Quote 0
        • 1
        • 2
        • 2 / 2
        2 / 2
        • First post
          11/13
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy