I’m just wondering, is it possible to split up a ‘li’ element?
I want to try to create a menu where the :hover effect is made up of three divs.
Or, I’m not sure if I need three divs. All I want is for the general :hover effect to have a certain color. Then I want a small image of an arrow like shape in the centre of each ‘li’. Thus creating a hover effect which looks like a small arrow pointing downwards.
Am I thinking a bit too advanced here?
Any help is appreciated!
You don’t need any extra divs or anything like that, a simple structure with one transparent PNG image will do. Try something like this:
Then, with a image similar to this:
And CSS like this:
You should end up with a result similar to what I have here:
If you want to use images as the text in the links, you can just add
<span>elements inside the<a>tags and use normal image replacement techniques (you can’t use the<a>element as that already has an background defined).Hope this helps.