Log in

View Full Version : Resolved JavaScript in a horizontal list?



goo
02-05-2009, 09:39 PM
Hello,

I would like to put slideshow images functioned with JavaScript inside a CSS unordered list.


<ul>
<li><script type="text/javascript">(my image1 here)</script></li>
<li><script type="text/javascript">(my image2 here)</script></li>
<li><script type="text/javascript">(my image3 here)</script></li>
</ul>

But even if I use li {display:inline;} the list appears vertically. How do I put them next to each other horizontally? Is it possible?:confused:

Hope you can help so I can sleep... Thank you!!

Goo x

Snookerman
02-05-2009, 09:50 PM
Sure, you can float them:

li {
float: left;
}

Good luck!

goo
02-05-2009, 10:00 PM
Oh you are genius! THANK YOU! x x x

Snookerman
02-05-2009, 10:01 PM
You're welcome, glad to help!
You can go to your first post in this thread, click http://www.dynamicdrive.com/forums/images/buttons/edit.gif then click Go Advanced and add the Resolved prefix to the thread title.
This will let other users know the problem has been solved.

Good luck with your site!