Read the statement by Michael Teeuw here.
Extreme basic question!
-
I’ve written my own module to display a set of family tasks which rotate each week.
Once I’ve done some javascript to build a string of HTML, I display with.var element = document.createElement("div") element.className = "myContent element.innerHTML = output; return elementI just want to format this element with an existing magic mirror class so that the text doesn’t look massive and out of place, say “title” for example. But I can’t work out how to actually achieve that.
-
@chris_d in custom.css
.module_name .classname { font-size:. ????? }.module_name is your module name
. classname is .myContent
fix the missing " in your posted textnote the dot in front. that means class
no dot means element name (div, table. li, …)
# means id -
the string of things before the {
is called the selector clause.
this gives u the ability to ‘select’ the html elements you want to apply the styles to
I use this cheat sheet to view the different choices
https://www.w3schools.com/cssref/css_selectors.phpthe selector can be very complex
here is one from my MMM-Config module
.possibly-hidden-tab div:nth-child(2) > div > div >div >ul >li:only-child >a[rel*="Item 1"] { display: none; }
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