Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Bulletpoints instead of images

In how to make a web page, my images looks like bullet points instead of images in the preview mode. I can´t find any problems with the code and my images is places the same as NIck´s.

I know this question has been asked before, but it didn´t get an answer. Thanks guys!

Dan

The code:

<ul> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li>

2 Answers

Hello Dan,

The way you put an image instead of a bullet point in your unordered list is by adding it unto the css.

Here is an example

ul { list-style-image: url('imagename.jpg'); }

Thanks Andres, but I haven´t gotten to CSS yet. Do you think there could be an alternaive solution based on the html code or the placement of the images? Of course I could use your solution, but I kinda wanna learn what I did wrong here :)

Best, Dan

Hey Dan,

Have you checked to ensure that your image files have the correct name or location or syntax, for what you are calling in your code?

Cam