Solved

YUI CSS and list-style-image

Posted on 2009-04-09
3
611 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:psenn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 30

Accepted Solution

by:
LZ1 earned 125 total points
ID: 24108733
The LI in the CSS is (I think) overriding your code.  
li{list-style:none;}  Replace that with your CSS above.
0
 

Author Comment

by:psenn
ID: 24109608
It needed to to be
ul li
instead of
ul.

0
 
LVL 13

Expert Comment

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

also check for the path of the image.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Override MS CSS in SharePoint Online Modal Form 19 83
CSS DIV Height in Percent 1 27
Can't get cursor to change 3 16
Allow a tab area under the contents 1 25
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question