nesting css. what did i do wrong ?
hi all, i'm trying to toggle a edition using css.
in "display mode" : i need to display labels of checked inputs (ok)
in "edition mode" : i need to display everything (not ok)
this only thing happening when toggleling edition, is the "switch" of the buttons modify/save
here is my code https://jsfiddle.net/zn38p51s/
Edit fiddle - JSFiddle - Code Playground
JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.
13 Replies
if you don't want the button to jump to the next line use
display: inline-block
instead of display: block
it's not the button my problem (it's simplified code from my project)
in "edition mode" i want to display every labels + input
and if you are not in edition mode ? what should happen?
display only labels with checked input (that is ok)
it's a specificity issue
also you have
.label
and it should be just label
this should boost itha... oups ... this works for the checked inputs, but still cannot see others
adding !important solves it... but i'm not a fan of !importants
IMO : using !important means i've missed something
okay, i went for this solution :
why are you hiding the label?
if you are reffering to checked inputs in display mode you should change
to
im talking about this:
that was meant for op sorry 🙂
oh
because this is what was asked to me xD
that is ... oh, well