1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Recordset/table display

Discussion in 'CSS' started by Eclipse414, Dec 23, 2005.

  1. #1
    Hello All,

    here is how my recordset looks...i am using simple asp code to build and display the below record set


    
    Station | Length | Width | AvgWidth | Area  
    ____________________________________________
    555-25  |   25   |  20   |   22.5   | 562.5
    555-50  |   25   |  25   |   30     | 750       
    555-75  |   75   |  35   |   25     | 1875
    556-50  |  NULL  |  15   |   NULL   | NULL     
    560-50  |   50   |  15   |   15     | 750  
    561-00  |  NULL  |  15   |   NULL   | NULL  
    
    Code (markup):
    Null values indicated a break in the series...

    but my final desired display is...how can i do this with CSS

    
    Station | Length | Width | AvgWidth | Area  
    ____________________________________________
    555-25  |        |  20   |          |       
            |   25   |       |   22.5   | 562.5
    555-50  |        |  25   |          |       
            |   25   |       |   30     |  750  
    555-75  |        |  35   |          |       
            |   75   |       |   25     | 1875
    556-50  |        |  15   |          |       
    -----------< some empty cells
         to indicate gap too wide >--------------
    560-50  |        |  15   |          |       
            |   50   |       |   15     |  750
    561-00  |        |  15   |          |       
    
    
    Code (markup):
    thanks in advance
     
    Eclipse414, Dec 23, 2005 IP
  2. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would use tables to display this. Tables were meant to display tabular data and this is exactly what you are displaying
     
    Corey Bryant, Dec 25, 2005 IP
  3. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #3
    Corey is right, you may use css to style the table however, if you'd like to spruce it up. ;)
     
    Colleen, Dec 25, 2005 IP
  4. Malachim

    Malachim Peon

    Messages:
    72
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Technically you can write tables in CSS, but if it's loaded by a browser that doesn't support it or - rather more likely - has compatibily issues, your table will be a real mess.

    As Colleen points out, setting the actual style and such is another matter and really does want setting up via CSS
     
    Malachim, Dec 27, 2005 IP
  5. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Malachim, do you have an example of this?
     
    Corey Bryant, Dec 27, 2005 IP
  6. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #6
    I'd be interested to see this too, Malachim.

    As Corey stated, tables were meant to display tabular data and would be perfect for Eclipse414's purposes.
     
    Colleen, Dec 27, 2005 IP
    GRIM likes this.