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
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Q: Can replace table tag...

    I am writing a web page and I want to replace the table tag with something else (i.e. ol). I want to make the ol tag to behave like the table tag. I mean:

    <head>
    <style type="text/css">
    ol {display: table;}
    </style>
    </head>
    <body>
    <ol>
    <tr>
    <td>a</td>
    <td>b</td>
    </tr>
    <tr>
    <td>c</td>
    <td>d</td>
    </tr>
    </ol>
    </body>
    Last edited by martinkunev; 07-18-2008 at 07:23 PM. Reason: determining

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts


    Why would you want to do that? if the cointent of you table is tabular data then you should use a table. if it is an ordered list then it should be <ol>. if you start to change what they mean, then how is any browser going to know how to present them?

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #3
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I want to use 2 different types of tables (with different styles ) and I prefer to do that without using additional attributes (id, class, style). But I think what I want to do is impossible so I am forced to use class.

    Most of the browsers understand styles, so it will be no problem to predefine the tag behaviour. I just don't know what is the meaning of "display: table;" if you can not use it.

    Anyway I will use the standard table tag.

  • #4
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    well I foind this to explain it but... I am none the wiser.

    http://www.w3schools.com/css/pr_class_display.asp
    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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