SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How would you do this?

    One of our clients wants a list of prices adding for a particular service. They want a list of various options with a price next to it.

    So do I, use a table in the content body to have the option in one cell and the price in the adjoining cell, using standard table headers etc for accessibility

    OR

    do I use an alternative method like adding classes etc or putting the data into a list and use CSS to move everything around so things correspond?

    What would you do?

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,347
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    TABLE would be quite appropriate

    for only two items (option and price), a DL would work too
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah - there's only 2 columns needed.

    What's a DL?

  4. #4
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,294
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by gary@castus
    What's a DL?
    DL = Definition List

    Semantically, a table would probably be more appropriate for the need. A definition list is supposed to be for a definition of terms, which I guess you could jab this requirement into, but from my perspective, a table would be appropriate.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse

  5. #5
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd go for a table as you are actually trying to display tabular data. A definition list probably isn't right in this situation as 9.95 isn't a definition for anything

  6. #6
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, thanks Dave.

    I have actually used DLs before - but a long time ago. Thanks for your input.

  7. #7
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah good point. I think I have just got into that situation where I try and remove tables from everything - even though tables are probably the right way to do things.

  8. #8
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gary@castus
    Yeah good point. I think I have just got into that situation where I try and remove tables from everything - even though tables are probably the right way to do things.
    Yeah, I had exactly the same issue when I was originally moving away from table based layouts as it seemed as though tables were just bad.

    If you're trying to display tabular data though then there's obviously nothing wrong with using a table as that's the job it was originally intended for it to do

  9. #9
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    TABLE is the way to go here. It's definitely tabular data, since there are relationships in two dimensions.

    DL is not appropriate for this, IMHO.
    Birnam wood is come to Dunsinane


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
  •