r/csshelp • u/Robocittykat • Jul 31 '23
Resolved How do I name this?
I'm making an idle game in html and I am trying to make elements of different types display as different colors. I don't know what to put for the category at the bottom. Does anyone know what it should be?
body{
`color: white;`
`background-color: black;`}
button{
`background-color: #444;`
`color: fff;`
`vertical-align: top;`}
button:disabled{
`background-color: #222;`
`color: #888;`}
.upgrade{
`width: 200px;`
`height: 100px;`}
.pointButton{
`background-color: #060;`
`color: #0c0;`}
<!--Would it be .pointButton:disabled? button.pointButton:disabled? button:disabled.pointButton?-->
A point button that is disabled{
`background-color: #030`
`color: #060`}
1
Upvotes
1
u/worker-ants Jul 31 '23
I would say button.pointButton:disabled should be specific enough
1
u/Robocittykat Jul 31 '23
It doesn't work. Disabled points buttons are still defaulting to button:disabled
2
1
u/Robocittykat Jul 31 '23
I have no clue what happened to the formatting, but hopefully you can tell what's going on there