Results 1 to 4 of 4

Thread: JavaScript in a horizontal list?

  1. #1
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question JavaScript in a horizontal list?

    Hello,

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

    HTML Code:
    <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?

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

    Goo x
    Last edited by Snookerman; 04-22-2009 at 08:26 AM. Reason: added [html] and [icode] tags and “Resolved” prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Sure, you can float them:
    Code:
    li {
    float: left;
    }
    Good luck!

  3. #3
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Oh you are genius! THANK YOU! x x x

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!
    You can go to your first post in this thread, click 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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •