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

140
Views
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 answers
Answer question

0

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

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