• 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.

CSS 101 - Getting started with CSS and understanding how CSS works

Scheduled Pinned Locked Moved Custom CSS
15 Posts 11 Posters 28.2k Views 19 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.
  • S Offline
    sdetweil @videogame95
    last edited by sdetweil Oct 8, 2023, 11:16 PM May 8, 2023, 11:48 AM

    @videogame95 only ever change custom.css

    never change any file we ship or any module ships, as it will break update for any of those

    so, in a css entry the stuff before the { is called the css selector clause, as it ‘selects’ the elements the info between the {} will apply to

    in MagicMirror each module has a container element that uses is name in the class= attribute, so you can select stuff in the calendar module by using its classname

    .calendar

    I use this to help me remember all the stuff that can go in a selector clause
    https://www.w3schools.com/cssref/css_selectors.php

    you can use the developers window, elements tab to see and test changes on any element in the active browser window

    see here for using the developer window
    https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1683502518638

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    V C 2 Replies Last reply May 12, 2023, 10:00 AM Reply Quote 0
    • V Offline
      videogame95 @sdetweil
      last edited by May 12, 2023, 10:00 AM

      @sdetweil Hi I’ve add to the custom css
      .MMM-Googlecalendar ,
      But nothing is changing I just need to add
      A border around my text .
      }
      border around the text

      border-color:#000, = block
      Border-size-width : 20px
      Borde-size-hight: 20px
      },

      S 1 Reply Last reply May 12, 2023, 11:07 AM Reply Quote 0
      • S Offline
        sdetweil @videogame95
        last edited by May 12, 2023, 11:07 AM

        @videogame95 css is case sensitive like everything else

        be careful on the selector clause, just module name applies to everything

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • C Offline
          Chazzer @sdetweil
          last edited by Oct 8, 2023, 7:30 PM

          @sdetweil Thanks for the initial tips here.

          1 Reply Last reply Reply Quote 0
          • C Offline
            Chazzer
            last edited by Oct 8, 2023, 9:47 PM

            Great infos and good tips. Thank you 🙏

            1 Reply Last reply Reply Quote 0
            • R roth_nj referenced this topic on Oct 22, 2023, 11:10 AM
            • S svenpisa referenced this topic on Feb 6, 2024, 1:20 PM
            • K kayakbabe referenced this topic on Feb 18, 2024, 9:55 AM
            • G greedyvegan referenced this topic on Mar 30, 2024, 8:54 PM
            • 1
            • 2
            • 2 / 2
            • First post
              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