Hide table lines and columns

  • Unknown's avatar

    I have import a table from open office and i have modify the CSS in order to hide the table, I have done this:

    table {
    display: table;
    border-collapse: separate;
    border-spacing: 2px;
    border-color: white;
    }
    But I still have column and lines that appeared. How can I hide them?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi @rgw2011
    Try this CSS to completely hide the table borders:

    table {
      border: none;
    }

    TIP: You don’t need to add the display: table; property with the table selector in CSS because, a tables default view is always gonna be table. So there’s no to need to declare it.

    Hope this helps :)

  • Unknown's avatar

    the css you told me to write doesn’t work :/

  • Unknown's avatar

    Since your blog, site is protected i cannot view your site and give you the exact code, as i am just a volunteer here.

    There may be some CSS overriding issue i suppose.

    Whatever the issue is, if you don’t want the site to be public, I would recommend you to to wait for a while as someone from the WordPress Staff will help you with the exact code.

    Thanks! :)

  • The topic ‘Hide table lines and columns’ is closed to new replies.