Seeking to create a visually appealing horizontal menu navigation resembling:
{image1} ITEM1 [separator1] {image2} ITEM2 [separator2] etc.
However, a constraint exists - the HTML structure must remain unchanged. Can this be achieved solely with CSS using the provided markup: http://jsfiddle.net/Mrt4V/
Despite numerous attempts, I have only managed to achieve the following layout by utilizing the :before and :after pseudo-elements:
{image1} [separator1] ITEM1 {image2} [separator2] ITEM2 etc.
An obstacle seems to emerge here:
li a:after {
content: '';
float: left;
zoom: 1;
margin: 0 0 0 2px;
width: 4px;
height: 16px;
background: url('http://static-caselogic-com.r.worldssl.net/images/CaseLogic/Misc/CategoryMenuSeparator.png') 0 0 no-repeat;
}
What could possibly be going wrong in my approach?