Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[HTML] [CSS] - Trouble with website background on Retina

Featured Replies

Hi! I'm finishing my simple website project. But... I have trouble with background behaviour on devices with retina display.

 

Backgrounds work well on Macbook Pro and iPad, but doesn't cooperate on iPhones - they don't scale and get pixelised. I looked for the solutions on the web, but they helped with the half of the problem.

 

This is result on my first testing site, with the css I didn't modify. And on the iPhones it looks like this:

 

http://annakrauze.co.uk/mk/akademia/index.php



2dahyqh.png

 

 

I looked for many tutorials on the web and I made a second testing website. I added come css which were supposed to help on Retina devices and I enlarged bacgrounds twice the original size. And this is how it looks - backgrounds still don't scale and in some places they just miss the parts they supposed to be visible:


http://annakrauze.co.uk/mk/akademia/test/index.html


315csao.png 30wtvnm.png

 

I'm not a professional front-end developer, I'm a self-learner. I know my code may have MANY mistakes. But still, If anyone could help, or at least give me some advice what to do I'll be very gratefull!!! I'm running out of the ideas :p

 

 

Remove "fixed" from the background property for your .jumbotron element.

 

fNg7vFi.png

  • Author

Thank you so much for reply!

 

I removed all the "fixed" background properties on the first testing site:

 

http://annakrauze.co.uk/mk/akademia/index.php

 

 

But then the background loses its "sliding" parallax effect, like it's still visible on my second testing page:

 

http://annakrauze.co.uk/mk/akademia/test/index.html

 

 

Is there any chance to make the best of both worlds? :) Thank you in advance for help!!!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.