This list will not show the background image. the only way I can get them to show is by placing the image directly into the list. Which I do not want to do. I want to use jquery to swap the image. So when the second list item is clicked, the image will change from inactive to active and the first list item will change from active to inactive.
So what I want is to use jquery add and remove class function. But I can not get the background image to show on the list. I don’t want to put any content into the list item. Could this be the problem?
The proper way to implement this would have been to apply the bg image to the li element. and use padding to move the text away from the image. adjust bg image accordingly using background positioning.
I know that. But as I said in my post, I don’t want to put any content into the li element. without that content, I couldn’t get the li element to expand to show the background image. even by providing a width and height.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".