markjl Posted October 9, 2013 Share Posted October 9, 2013 Hello I have added a background image which works fine in desktop but not at all in mobile See image for mobile screen print How can I get the background image to scale? Thanks Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted October 9, 2013 Share Posted October 9, 2013 (edited) is that background image is on whole page i mean body ? u can have this way <img class="pring" src="image location" width="" height="" alt="" /> on css img.pring{max-width:100%;} or define height ,width by various media sizes Edited October 9, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
markjl Posted October 9, 2013 Author Share Posted October 9, 2013 (edited) Many thanks Jiten is that background image is on whole page i mean body ? Yes its in the body in global.css like this body{ background: #ffffff url('../img/numerisation-de-video-fond2.jpg'); } Should your code <img class="pring" src="image location" width="" height="" alt="" /> on css img.pring{max-width:100%;} also go in global css? Edited October 9, 2013 by markjl (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted October 9, 2013 Share Posted October 9, 2013 remove that body image from css background: #ffffff url('../img/numerisation-de-video-fond2.jpg'); on ur theme header.tpl add background image and add this at css img.pring{max-width:100%;} <body> <img class="pring" src="image location" width="" height="" alt="" /> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now