Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-14-2004, 05:49 PM   #1
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
numbered table rows?

I want to change the layout of my music page on my web-site.

I want the end result to look something like:

1. artist track album year
2. artist track album year

I'm considering using a table so that the artist/track/album/other stuff all lines up. But I want each track to be numbered.

I could easily do that with tables like so:

1artisttrack
2artist....track


But the problem with how I did that is if I removed track 1 from the list, I'd have the track number for every track on my list...

Currently my music page uses an ordered list so I can add/remove tracks and the numbering will still be proper, but I don't know how to make an orderd list work with a table.

Any suggestions?

TIA, L J
__________________
Main: Gigabyte GA-770T USB3 - Phenom II 840 - 4GB DDR3 - Radeon 5750 1GB
HTPC: MSI K9N6PGM2-V2 - Athlon II 250 - 4GB DDR2 - Radeon 5670 512MB
HTPC: Zotac GeForce 6100E-E - Athlon X2 5800+ - 4GB DDR2

"Play a Windows CD backwards and you'll hear satanic voices, thats nothing, play it forwards and it installs Windows."
Colonel Sanders is offline   Reply With Quote
Old 06-14-2004, 10:49 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
Could you embed an excel worksheet? That has row numbers on the left that don't get messed up when you delete entries.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 06-15-2004, 07:56 AM   #3
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Ordered list with a table would just be:
<TD>
<OL>
<LI>
</LI>
</OL>
</TD>
mairving is offline   Reply With Quote
Old 06-15-2004, 09:10 AM   #4
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
Mairving, what you've posted looks like it would place the whole ordered list inside a cell, but I want to find a way to number the rows.

Force flow, I lack excel. I do have OpenOffice and can use that to make a spread-sheet though, woudl that do me any good?

Is there any way to do this with CSS?

L J
Colonel Sanders is offline   Reply With Quote
Old 06-15-2004, 03:17 PM   #5
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
CSS deals more with GUI features. PHP, on the other hand, might be able to do it.

Or, what you could do something like this:

PHP Code:
<table border="1" width="43%">
  <
tr>
    <
td width="4%" valign="top">
      <
table border="1" width="1%">
        <
tr>
          <
td width="100%">1</td>
        </
tr>
        <
tr>
          <
td width="100%">2</td>
        </
tr>
        <
tr>
          <
td width="100%">3</td>
        </
tr>
        <
tr>
          <
td width="100%">4</td>
        </
tr>
        <
tr>
          <
td width="100%">5</td>
        </
tr>
        <
tr>
          <
td width="100%">6</td>
        </
tr>
        <
tr>
          <
td width="100%">7</td>
        </
tr>
        <
tr>
          <
td width="100%">8</td>
        </
tr>
        <
tr>
          <
td width="100%">9</td>
        </
tr>
        <
tr>
          <
td width="100%">10</td>
        </
tr>
      </
table>
    </
td>
    <
td width="96%" valign="top">
      <
table border="1" width="100%">
        <
tr>
          <
td width="100%">this song</td>
        </
tr>
        <
tr>
          <
td width="100%">another song</td>
        </
tr>
        <
tr>
          <
td width="100%">still another song</td>
        </
tr>
        <
tr>
          <
td width="100%">and so on</td>
        </
tr>
        <
tr>
          <
td width="100%">etc</td>
        </
tr>
        <
tr>
          <
td width="100%">etc</td>
        </
tr>
      </
table>
    </
td>
  </
tr>
</
table
Code:
1
2
3
4
5
6
7
8
9
10
this song
another song
still another song
and so on
etc
etc
Force Flow is offline   Reply With Quote
Old 06-15-2004, 03:22 PM   #6
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
Sorry for the post here, but I'm having problems with the edit button.

Anyway, what this table does is keep the numbered list seperate from the song list, so if you delete a cell with the song in it, they just shift up and the numbered column remains untouched.
Force Flow is offline   Reply With Quote
Old 06-15-2004, 10:44 PM   #7
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
Force Flow, thats an excellent idea and looks like it will be the easiest way to update my music page. Thanks!

Now another question, 91 tracks, 5 fields each, that could take a long time to type in again... this is probably a question for a different subject, but does anyone have any idea of how I could make(or acquire) a script that would at least read the tags and output information in the different fields to say at least a standard text file? If not, just more typing practice...

L J
Colonel Sanders is offline   Reply With Quote
Old 06-15-2004, 11:20 PM   #8
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
Is it just text on your webpage, or is the info in tables?
Force Flow is offline   Reply With Quote
Old 06-16-2004, 04:03 AM   #9
Resident AMD enthusiast
 
Colonel Sanders's Avatar
 
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
Soon to be info in tables.
Colonel Sanders is offline   Reply With Quote
Old 06-16-2004, 05:47 AM   #10
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 36,460
A thought - if you are using Excel or Open Office, just use the builtin save as HTML function, see what you wind up with. If it works for you, it should be easy enough to update your spreadsheet, save as HTML again, touch up your code, and just upload it when you make changes.
glc is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:24 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0