Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Mobile Table 3

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #197709
    analis
    Participant

    I have a table with 5 columns with empty cells.

    I have to change it in a two-column table, and I have to delete the blank cells.

    does not work

    http://jsfiddle.net/dvupx69d/

    #197712
    Senff
    Participant

    To start, in order to make empty cells totally invisible, they shouldn’t have any borders (an empty cell with a border will still show the border), and zero padding.

    I would suggest to get rid of the borders on each TD, add padding:0, and give it a background color or something.

    https://jsfiddle.net/senff/y0u0238r/

    #197722
    analis
    Participant

    td:empty{display:none;}

    delete empty cells with border but the space is a problem

    http://jsfiddle.net/dvupx69d/2/

    #197725
    analis
    Participant

    works with the columns must be equal (4)

    empty cells should be at least 2

    http://jsfiddle.net/dvupx69d/4/

    #197727
    Senff
    Participant

    The empty cells are not showing from what I can see…so I’m not sure what the issue is.

    #197773
    analis
    Participant

    you can put the empty cells in a third column ?

    #197781
    Paulie_D
    Member

    I don’t know who I said this too before but I think it may have been part of the same type of question / discussion.

    “If you don’t want a table to act like a table, don’t use a table.”

    Seems to me this issue is entirely relevant to the above.

    #197808
    analis
    Participant

    thanks

    #197810
    analis
    Participant

    this is a best method, work in chrome but not work on safari browser

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.