Table Border Color

Discussion in 'Infoway WordPress Theme' started by coolflatroof, Jun 12, 2013.

  1. coolflatroof

    coolflatroof New Member

    Joined:
    Feb 28, 2013
    Messages:
    10
    Likes Received:
    0
    Hi,

    I'm trying to change the color of table border.

    I want the border around the table to be 1px solid, black, and inside to be zero px

    right now it is all 1 px solid gre, inside out

    Basically, where in CSS do I control how borders look?

    Example is here: http://www.coolflatroof.com/roofing-calculator.php
     
  2. coolflatroof

    coolflatroof New Member

    Joined:
    Feb 28, 2013
    Messages:
    10
    Likes Received:
    0
    Any help?
     
  3. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    Paste the following code in your Custom CSS
    (Appearance -> Theme Options -> Styling Options -> Custom CSS)
    Code:
    .sample table {
    border: 1px solid black ! important;
    }
    .sample td, .sample th {
    border: 0px solid #ccc ! important;
    }
    
    This will solve your issue.
     
  4. coolflatroof

    coolflatroof New Member

    Joined:
    Feb 28, 2013
    Messages:
    10
    Likes Received:
    0
    How do I add 7px padding?

    I tried the following:


    Code:
    .sample table {
    border: 1px solid black ! important;
    padding: 7px 7px 7px 7px ! important;
    }
    and

    Code:
    .sample table {
    border: 1px solid black ! important;
    padding: 7px 7px 7px 7px;
    }
    Both do not work

    Also, how do I edit font styling inside tables - I want different font, color, size - how do I change it with CSS, and without using <font> tags?
     
  5. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    .content-bar.sample tbody {
    border: 2px solid red;
    }
    .sample td {
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    #CalcSum b {
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    .sample td a b {
    color: red!important;
    font-size: 22px;
    font-family: harrington!important;
    }
    .sample #select{
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
     
    }
    .sample #material{
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    .sample #slope{
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    .sample #sky{
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    .sample #chim{
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    .sample #existing{
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    .sample#difficulty{
    color: blue!important;
    font-size: 20px;
    line-height: 35px;
    font-family: harrington!important;
    }
    Change values as per your requirements.
     

Share This Page