I want to create a sidebar and when it is active, I want the wrapper to change its margin-left
to 89px to make it responsive.
Is there a way to combine an ID, an active class, and the dashboard wrapper class together? CSS
#sidebar.active .dashboard-wrapper {
margin-left: 89px;
}
HTML placing
<div class="nav-left-sidebar sidebar-dark" id="sidebar">
SIDEBAR CONTENTS
</div>
<div class="dashboard-wrapper">
MAIN CONTENT
</div>