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

158
Views
Is there Javascript to detect if a device is using iOS and if so then remove a specific element from the DOM

I have a banner that is about 450px in height and it has a background image that is set to background-attachment: fixed. I know it doesn't work on iOS so I was wondering if there was a way to use some JS to detect if the webpage is being run on iOS and if so then can it just remove the element from the DOM? Here is my code:

<!--Banner-->
<div class="banner">

</div>

.banner {
    margin-top: 3rem;
    background-image: url(../img/angular/angular-mockup.png);
    width: 100%;
    overflow: visible;
    min-height: 454px;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}
about 4 years ago · Santiago Gelvez
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!