Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to keep style after click

<input type="checkbox" id="activate-div">
  <label for="activate-div">
   <div class="my-div">
      //MY DIV CONTENT
   </div>
  </label>
Comment

how to keep style after click

#activate-div{display:none}    

.my-div{background-color:#FFF} 

#activate-div:checked ~ label 
.my-div{background-color:#000}
Comment

PREVIOUS NEXT
Code Example
Css :: increase width in template in fandom 
Css :: trigger before update 
Css :: absolute vertical middle quasar 
Css :: css design guideline 
Css :: array_splice method 
Css :: html first letter uppercase 
Css :: advance logic in css 
Css :: hover to slightly up div 
Css :: only outline on keybord 
Css :: hide content when element too small and add scrollbars 
Css :: css color properties 
Css :: on frontend grivity form css not load 
Css :: option select css 
Css :: input type search in css 
Css :: why sass 
Css :: css background image not showing vscode 
Typescript :: prettier not working with tsx 
Typescript :: ts get year from date 
Typescript :: install typescript 
Typescript :: Task :app:bundleReleaseJsAndAssets FAILED 
Typescript :: python requests get proxy 
Typescript :: googlesheets query date between 
Typescript :: How To Fix Error PS1 Can Not Be Loaded Because Running Scripts Is Disabled On This System In Angular 
Typescript :: how to insert subscript in plots in r 
Typescript :: luxon react ts install 
Typescript :: npm type-check nested arrays 
Typescript :: vetur change tsconfig location 
Typescript :: microsoft outlook graph get events dates 
Typescript :: Why are my component bindings undefined in its controller? 
Typescript :: angular convert file to base64 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =