Forum Academy Marketplace Showcase Pricing Features

Expand element width when nearby element invisible

Hello - I am making a system of buttons.


I have three buttons next to each other, with 10px space between them. When buttons 2 and 3 are set to “not visible” I want button 1 to expand to fill the space where these buttons would’ve been.

How can I achieve this?