Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda