Using 'table values' with non-table elements display-property

Discussion in 'HTML' started by Jam Pa, Apr 27, 2005.

  1. Jam Pa

    Jam Pa Guest

    Is it good CSS practice to use 'table layout values' such as 'inline-
    table' with a non-table elements 'display' property?

    For example (css follows)

    p {
    display: inline-table;
    }

    /** or maybe */

    div {
    display: table;
    }

    (end)

    After all, neither p or div tags are table. It does seem to work with IE
    and firefox somewhat well.

    Anyone have any comments?
     
    Jam Pa, Apr 27, 2005
    #1
    1. Advertising

  2. Jam Pa

    Spartanicus Guest

    Jam Pa <> wrote:

    >Is it good CSS practice to use 'table layout values' such as 'inline-
    >table' with a non-table elements 'display' property?


    Not a problem.

    >After all, neither p or div tags are table.


    Irrelevant, css does not affect semantics and/or structure.

    > It does seem to work with IE
    >and firefox somewhat well.


    You must have been dreaming, IE does not support any of the css table
    values, Mozilla does not support inline-table.

    --
    Spartanicus
     
    Spartanicus, Apr 27, 2005
    #2
    1. Advertising

  3. Jam Pa

    Toby Inkster Guest

    Jam Pa wrote:

    > Is it good CSS practice to use 'table layout values' such as 'inline-
    > table' with a non-table elements 'display' property?


    Sure, but it will only have any effect in Opera 7+ (or perhaps 6+? maybe
    even 5+?)

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Apr 28, 2005
    #3
  4. Jam Pa

    Spartanicus Guest

    Toby Inkster <> wrote:

    >> Is it good CSS practice to use 'table layout values' such as 'inline-
    >> table' with a non-table elements 'display' property?

    >
    >Sure, but it will only have any effect in Opera 7+ (or perhaps 6+? maybe
    >even 5+?)


    Opera has supported inline-table since v5

    KHTML browsers also support inline-table IIRC.

    --
    Spartanicus
     
    Spartanicus, Apr 28, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    4
    Views:
    451
    Steve
    Jan 27, 2006
  2. Ultrus
    Replies:
    4
    Views:
    2,701
    Stefan Behnel
    Aug 30, 2007
  3. Replies:
    6
    Views:
    115
  4. Replies:
    0
    Views:
    86
  5. Evertjan.
    Replies:
    6
    Views:
    137
    Evertjan.
    Apr 9, 2009
Loading...

Share This Page