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

105
Views
Overrideing hardcoded element style inside an iframe

I have no access to the html for this form, all theming has to be done via css that is loaded into the iframe which displays the form. Yes, this code is annoying and bad practice, but it is what it is.

<input 
    class="give-input required" 
    type="text" 
    name="give_first" 
    autocomplete="given-name" 
    placeholder="First Name" 
    id="give-first" 
    value="" 
    required="" 
    aria-required="true" 
    style="padding-left: 33px!important;" tabindex="1">

Versions of the below, beginning with #give-first and adding greater specificity, do not work

#give-first-name-wrap input#give-first.give-input.required[style] 
{ 
    padding-left:0; 
}

I don't have a hook to load jQuery into the iframe, very annoyingly!

All suggestions gratefully received.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

style attributes have higher specificity than any selector.

They can only be overridden if they aren't !important and you use an !important rule.

In this case, the rule is !important so you can't override it.


You could replace it with JS. You don't need jQuery.

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!