Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda