• rdny

    (@rdny)


    Hello.

    I’m having some problems with my tables. I want the border to be set to “0px”. I don’t want to see the tables.

    See pic here.

    I’m running a child theme of Generatepress.

    In my post I have <table id=”serier”> and in my css file I have

    #serier
    td {
    padding: 5px;
    border: 0;
    }

    But why does it look the way it does? The right and bottom border is gone, but not the left and the top one.

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • neotechnomad

    (@neotechnomad)

    This should help: CSS Tables

    Thread Starter rdny

    (@rdny)

    Nope. It did not ??

    Thread Starter rdny

    (@rdny)

    Oh well. I put…

    <style>
    table, th, td {
    border:0px solid black;
    }
    </style>

    …in GP Hooks in wp_head and then it worked. But I don’t understand why it didn’t worked the other way.

    neotechnomad

    (@neotechnomad)

    Because, in the head, it is the last css item loaded, so it over-rides everything else – but when the theme updates, it will wipe that out.

    Use a Custom CSS plugin for any changes, as when the main theme updates, all the changes you may have made to the main theme will be lost then, after installing the plugin, paste your code in it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with tables’ is closed to new replies.