Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Oct 2005
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    changing a 3 col table to a list, correct html?

    http://digitalpatriots.org/index.php...6417f2a&clan=0


    the list on the top right, 'Active Scrims: 2' uses a table to align the image, description, and number.

    would it be better to use a nest a horizontal list within a vertical list and space them out some how?

    Code:
    <ul>
        <ul><li class=img>img</li><li class="desc">desc</li><li class="no">no</li></ul>
        <ul><li class=img>img</li><li class="desc">desc</li><li class="no">no</li></ul>
        <ul><li class=img>img</li><li class="desc">desc</li><li class="no">no</li></ul>
        <ul><li class=img>img</li><li class="desc">desc</li><li class="no">no</li></ul>
    </ul>

    is that the correct sort of html?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table alright

    First of all, a list should be nested inside a list item and not directly in the list itself, but judging by the implied meaning of these items a table would be suitable markup: there's an implied row-column arrangment, so a table will do nicely.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Regular Coder
    Join Date
    Oct 2005
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for that

    wouldn't want to be unsemantic....

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Semanticism

    Well... this would be a case where more then one solution would do.
    It could be argumented that this is a weak case for table markup, and a nested list (a "list of lists") would be just as fitting; there could also be some microformat which fits the bill even better.
    As said, the clear arrangement of the data in a row and column fashion, albeit in the absence of column and/or row headers (these could be worked in just as well, though) spells "table" clear enough in my view.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •