The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS two section button Reply To: two section button


however, i cannot select the second icon and update the first

You can’t do that with CSS because there isn’t a selector that looks backward to target elements earlier in the DOM. CSS selectors can only look forwards.

Maybe you could use a semi-transparent pseudo element on the 2nd button that’s positioned over the first to give the illusion that the first is being faded? Or use JavaScript to target the first button.

I’m on mobile so can’t demo anything but at least that gives you a few ideas to play with.