Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
Div is not changing width after other class activation and width change - sidebar and fluid page content

I made sidebar menu with YT (https://www.youtube.com/watch?v=wEfaoAa99XY) tutorial but there is one thing that didn't work.

When I collaps sidebar menu, the content box with text should expand and fill the gap after sidebar but it is not happening.

It should be done by this code:

.sidebar.active ~ .content-box {
width: calc(100% - 80px);
left: 80px;
transition: all 0.5s ease;

}

I checked and .sidebar is set to active after click on button. And when I delete ".sidebar.active ~ " the content box width is changing so I don't think that there is any colliding code.

Can anyone help me found what is wrong with this code?

Here is live page: https://gearlistmaker.com/

And here is github repository: https://github.com/jankamon/GearListMaker

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!