Link to home
Start Free TrialLog in
Avatar of psenn
psenn

asked on

YUI CSS and list-style-image

How do I add an image to a list if I'm using YUI CSS Grids builder?
It must be something to do with margins or padding.
The code snippet below works, but when I add YUI, my images disappear.

<link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">


<style type="text/css">
ul {
	list-style-image: url(CSS/Images/arrow.jpg);
}
</style>
</head>
 
<body>
<ul>
<li>List Item One</li>
</ul>
</body>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of LZ1
LZ1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of psenn
psenn

ASKER

It needed to to be
ul li
instead of
ul.

ul li
{
        list-style-image: url('CSS/Images/arrow.jpg');
}

also check for the path of the image.