Adding border changes width relative to parent div – Html
I have the following CSS: .subtask { background: var(--offwhite-color); margin: 0.3em; padding: .625em 1.25em; width: 60%; margin-left: .9em; } .subtask.highlight { border-left: .3em solid var(--secondary-color); } where .subtask.highlight is only rendered onClick(). However, this extends the width past the fixed…