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

141
Vistas
Removing css property that is applied to all elements with javascript

I'm building a website which mainly runs on WordPress. However, some pages I've coded myself in HTML/CSS/Javacsript, which I upload via a Wordpress plugin. The problem with this is that Elementor, a plugin, is adding css styles to the page. I want to delete those with a Javascript function on page load. Probably a stupid way of working as I'm new to coding, so any suggestion on this way of working is welcome.

Specifically the following style is added to the page:

*, *::before, *::after {* box-sizing: border-box;}

I know the code element.removeProperty('box-sizing'). However, the box-sizing applies to all elements * and I don't know how to select this 'element'. *.removeProperty('box-sizing') is obviously not working. Could anyone help me with this Javscript function that I will run on page load? Thanks a lot.

function remove_box_sizing(){
    .removeProperty('box-sizing') 
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can add a stylesheet where you override these rules with !important

about 4 years ago · Juan Pablo Isaza Denunciar
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