Jump to content

Best practice background image?


SmileyWar

Recommended Posts

I'v been looking around for the best practice for background imaging, but they all have some sort of negative effects.

 

What would be required is that it constantly stretches and fits on all viewport scaling and mobile devices

 

I have used a jquery script which works perfect but is really slow when scrolling.

 

The following is also slow

 

        background: url(img/bg.jpg) no-repeat center center fixed;

        -webkit-background-size: cover;

        -moz-background-size: cover;

        -o-background-size: cover;

        background-size: cover;

 

 

 

And if i use a div container with the image in it, it seems to react differently on xp computers.

 

So i'm just trying to find a sollution where it works well on browsers and is fast.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/249850-best-practice-background-image/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.