vendredi 30 mai 2014

I want the ID of the elemt as the background of the div


Vote count:

0




I am trying to add a background img to each element on my page. The background imgs name is the same as the id of the page (without the.png)


forexample:


/* i want this to have a bg of: background-image:url('1.png')*/ /* i want this to have a bg of: background-image:url('2.png')*/ /* i want this to have a bg of: background-image:url('3.png')*/

asked 39 secs ago






Aucun commentaire:

Enregistrer un commentaire