How to Use JQuery CSS "background" with an image ?
-
Hi – I want to place some background images behind my navigation links using JQuery. I have spent hours Googling the most promising solution which do not work in the context of WordPress:
applied to my own situation I come up with:
$('ul li :eq(0)').css('background', 'url(../images/home_icon.gif)'); $('ul li :eq(1)').css('background', 'url(../images/flower.gif)');
Can anyone please suggests the correct syntax to get an image behind a ul li a ?
Many Many Thanks – I’m pulling my hair out.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to Use JQuery CSS "background" with an image ?’ is closed to new replies.