|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 | ||||||
|
Resident AMD enthusiast
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:
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." |
||||||
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
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.
|
|
|
|
|
|
#3 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Ordered list with a table would just be:
<TD> <OL> <LI> </LI> </OL> </TD> |
|
|
|
|
|
#4 |
|
Resident AMD enthusiast
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 |
|
|
|
|
|
#5 | ||||||||||||||||||
|
Barefoot on the Moon!
Staff
Premium Member
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:
Code:
|
||||||||||||||||||
|
|
|
|
|
#6 |
|
Barefoot on the Moon!
Staff
Premium Member
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. |
|
|
|
|
|
#7 |
|
Resident AMD enthusiast
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 |
|
|
|
|
|
#8 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
|
Is it just text on your webpage, or is the info in tables?
|
|
|
|
|
|
#9 |
|
Resident AMD enthusiast
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
|
Soon to be info in tables.
|
|
|
|
|
|
#10 |
|
Forum Administrator
Staff
Premium Member
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.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|