View Single Post
Old 08-28-2016, 05:37 PM  
moeloubani
Confirmed User
 
moeloubani's Avatar
 
Industry Role:
Join Date: Dec 2007
Location: Ontario
Posts: 4,235
why not bust one of these:

<div class="image-with-default" style="background-image: url(image.jpg)">

then in your CSS just add an image there as the default with the image-with-default class

edit: no that wont work, i guess the first one would be overwritten, why not check if namevar exists and if it doesnt dont put in that line with the style stuff at all
moeloubani is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote