49 users online (1 members and 48 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 6
  2. Replies: 4
  3. Change table vertical to horizontal    Forum: HTML Forum
    Replies: 1
  4. Replies: 6
  5. Vertical Scrollin with no Vertical Scroll Bar    Forum: Website Scripts Forum
    Replies: 1
  1. #1
    aldar's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2008
    Posts
    5

    How can I change a vertical table (that reads info from CSV using SPAN) to horizontal

    I'm trying to make a small page that reads a CSV file (exported from excel) that gives me a list of my DVDs with an img that is a link to the file to start the movie. It actually works fine (needs some formatting tweaking), but as it is below, it lists the movies vertically (up & down). Anyone know how I can make it list them horizontally? For whatever reason I prefer it that way. Any help would be appreciated. I'm testing using IE btw. I've tried various placements of <DIV overflow-x: auto;> at the top and bottom of the table, but I have never used it before and I'm very unsure of it's proper placement or if that's even going to work.

    movies-test.html
    =====
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title> Graphical list </title>
    </head>
    <body bgcolor=#C0C0C0>
    <object ID=data classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
    <param nAme="DataURL" value="movies-test.csv">
    <param nAme="UseHeader" value="true">
    </object>
    <table CELLSPACING=25 datasrc='#data'>
    <tr>
    <td><center>
    <a href= <span datafld='location'> </span><img width=290 height=400 src=<span datafld='picture'></span> </a><br>
    <span datafld='name'> </span>
    <span datafld='time'></span>
    </center></td>
    </tr>
    </table>
    </body>
    </html>

    movies-test.csv
    =====
    name,time,picture,location
    8mm,123,C:/DVDs/images/8mm_cs.jpg,D:/8mm/video_ts/video_ts.ifo
    12 Monkeys,131,C:/DVDs/images/12_monkeys_cs.jpg,E:/12_monkeys/video_ts/video_ts.ifo
    Thirteen Ghosts,91,C:/DVDs/images/13_ghosts_CS.jpg,E:/thirteen_ghosts/video_ts/video_ts.ifo
    13th Warrior,102,C:/DVDs/images/13th_warrior_cs.jpg,D:/13th_warrior/video_ts/video_ts.ifo
    16 Blocks,105,C:/DVDs/images/16_blocks_cs.jpg,H:/16_blocks/video_ts/video_ts.ifo

  2. #2
    aldar's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2008
    Posts
    5

    Re: How can I change a vertical table (that reads info from CSV using SPAN) to horizo

    Wow. Thanks for the help everyone.

    Kinda like being on the amazingly friendly linux forums of 10-15 years ago... ignored or flamed.

    I wasn't necessarily asking for anyone to write it for me. Yes, I have done a lot of searching and reading for the answer, but this isnt my job, I just needed a solution for this problem and that's it, this is for my personal use. I'd be happy to read documentation, but no one has even offered names or links to docs.



Tags for this Thread