decadechild Posted October 20, 2014 Share Posted October 20, 2014 If it would be just CSS I would just put " " around the url, however this is a php script. Here's the line: <li style="background: url({img server_id=$aSlidePhoto.server_id path='photo.url_photo' file=$aSlidePhoto.destination suffix='_175' title=$aSlidePhoto.title return_url=true}); width: 175px; height: 130px;"> It works for all images except, for example: myimage (1).jpg What's the fix for such case? Quote Link to comment Share on other sites More sharing options...
Solution requinix Posted October 20, 2014 Solution Share Posted October 20, 2014 What's the fix for such case?It's quotes. Quote Link to comment Share on other sites More sharing options...
decadechild Posted October 20, 2014 Author Share Posted October 20, 2014 Thank you so much fellow WA! For some reason it didn't work when I tried it but since your post it works as it should. Thanks Quote Link to comment Share on other sites More sharing options...
requinix Posted October 20, 2014 Share Posted October 20, 2014 If you used double quotes then it would have conflicted with the quotes used for the style's value. So single quotes. Or you could be clever and use " (a double quote escaped for HTML). Quote Link to comment 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.