Support » Themes and Templates » Adding extra table class

  • Resolved Fleiding

    (@fleiding)


    Hi there,

    I am using the wonderful Yoko-theme for my website and I am very happy with it.

    The only thing what is bothering me are the table borders. I edited the CSS to show no borders in posts and pages. Works great, but now there is a situation which requires me to have a table with borders.

    If i but the normal CSS back, all my tables will have borders, but I do not want that. Only a few tables should have borders.

    I have tried copying this piece of code (for all the tables) and replaced the word content with my own word. Used <table class=”word”> to summon the custom table style.

    /* --- Post Tables --- */
    #content table {
    	margin:10px 0px 30px 0px;
    }
    #content table thead {
    	border-top:0px solid #ddd;
    }
    #content table tr {
    	border-bottom:0px solid #ddd;
    }
    #content table tr th {
    	padding: 10px 20px 10px 20px;
    	border-top:0px solid #ddd;
    	border-left:0px solid #ddd;
    	border-right:0px solid #ddd;
    }
    #content table tr td {
    	padding: 10px 20px 10px 20px;
    	border-left:0px solid #ddd;
    	border-right:0px solid #ddd;
    }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding extra table class’ is closed to new replies.