Change Button1 if Button2 is

Posted In HTML & CSS
  • michael-james 1 month ago
    Can I achieve this with just CSS?
    
    There's a web form I have to mod the styling of, and in it is two buttons that select or deselect rows in the table below.
    When the page loads, the Select None button (.buttons-select-none) is the "selected" button by way of the class rule .buttons-select-none.disabled and a background-color of rgba(26,39,50,1). [5 bhk flat in mumbai](https://avighnagroup.com/real-estate/project/one-avighna-park-3-4-5-bhk-projects-property-in-lower-parel/)
    
    If I select a row, or click Select All (.buttons-select-all), the .disabled class drops off the Select None button and it becomes "deselected" by way of the css rule .buttons-select-none:not(.disabled) and a background-color of rgba(26,39,50,0.5). This is what I want, but I can't think of how to make the Select All button become dark navy when it is pressed. [luxury retirement homes in india](http://www.gagannulife.com/)
    
    I can style :hover and :active, but neither of these work because once it's clicked, the button reverts to the lighter colour.

    Can I achieve this with just CSS?

    There's a web form I have to mod the styling of, and in it is two buttons that select or deselect rows in the table below. When the page loads, the Select None button (.buttons-select-none) is the "selected" button by way of the class rule .buttons-select-none.disabled and a background-color of rgba(26,39,50,1). 5 bhk flat in mumbai

    If I select a row, or click Select All (.buttons-select-all), the .disabled class drops off the Select None button and it becomes "deselected" by way of the css rule .buttons-select-none:not(.disabled) and a background-color of rgba(26,39,50,0.5). This is what I want, but I can't think of how to make the Select All button become dark navy when it is pressed. luxury retirement homes in india

    I can style :hover and :active, but neither of these work because once it's clicked, the button reverts to the lighter colour.

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!