Tables without borrder.

Discussion in 'CSS' started by moneydude, Sep 2, 2007.

  1. #1
    {
      border-color: #98aab1;
      border-width: 1px;
      border-style: solid;
      font-family : Verdana, Helvetica, sans-serif;
      font-size : 11px;
    }
    
    table.main, table.mainouter 
    {
      border-width : 0px;
      font-family : Verdana, Helvetica, sans-serif;
      font-size : 11px;
    }
    table.bottom 
    {
      font-family : Verdana, Helvetica, sans-serif;
      border-width : 0px;
      font-size : 11px;
      border-width : 0px;
    }
    Code (markup):
    With that css code i make all tables border=1px its very cool but my problem is that:

    I have like 50tables ^^ and i must use that code, only problem is that i need too make few tables that will not include that table borrder:D i hope u understand me, thanks a lot for help.
     
    moneydude, Sep 2, 2007 IP
  2. Philopoemen

    Philopoemen Peon

    Messages:
    704
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, you could give the border to ALL tables by default, and then assign a different class without a border to the ones you want.

    So, you specify the code simply to:
    table {}

    and not

    table.className {}
     
    Philopoemen, Sep 3, 2007 IP
  3. Lynsey

    Lynsey Peon

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should create a new div class for tables you wish not to have a border
     
    Lynsey, Sep 3, 2007 IP