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

191
Views
How to change a website as a result of aspect ratio?

I'm currently creating a website using HTML, CSS and a little JS. However, the background image I am using, as well as the general UI design, doesn't work on a phone's aspect ratio of 9:16. I was wondering if there is any way to change the background image and the way the website is layout depending on the aspect ratio. So if the aspect ratio is 16:9, it uses a certain image, whilst if it's 9:16 it uses another image.

Thanks in advance for any help :D

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

0

Actually, you can change your design on runtime by using this quote in your CSS file:

@media (max-width: 400px)
{
  
    #ID
    {
      //Changed Style
    }
}
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!