SmileyWar Posted October 26, 2011 Share Posted October 26, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/249850-best-practice-background-image/ Share on other sites More sharing options...
Drongo_III Posted October 27, 2011 Share Posted October 27, 2011 Hi mate Is the background image one large graphic? Can you show the example? might be able to suggest somethnig then. Drongo Quote Link to comment https://forums.phpfreaks.com/topic/249850-best-practice-background-image/#findComment-1282624 Share on other sites More sharing options...
SmileyWar Posted October 28, 2011 Author Share Posted October 28, 2011 Hello Drongo_III This is the site http://www.snowchains.co.uk/snowchains/ The image is indeed large it's 1920 x 1083. Thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/249850-best-practice-background-image/#findComment-1283059 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.