Outer border line ?? Help...

Discussion in 'HTML & Website Design' started by tptnyc, Nov 2, 2008.

  1. #1
    I know to bring outer border line I can do it with css coding:

    #main {
    background: #FFFFFF;
    border: 1px solid #E7EBF0;
    }

    But what if it is a table layout html page? How to show outer border lines on the outskirts of the entire page? I tried with border="1', it didn't help.
     
    tptnyc, Nov 2, 2008 IP
  2. sampathsl

    sampathsl Guest

    Messages:
    861
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you have made some small mistake please write your style in the table tag.
    For example <table border=8 cellpadding=8 cellspacing=2 bordercolor="#663300">. This should be working. Then put the correct syntax into the style sheet.
     
    sampathsl, Nov 2, 2008 IP
  3. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, I do not want to use css in this case. My question is how to bring outer-border line on html coded page which has 5 tables in it? Like I said, I tried using border="1" but it didn't help. So how to solve this tiny problem?
     
    tptnyc, Nov 2, 2008 IP
  4. skateme

    skateme Peon

    Messages:
    162
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Create a container table around your table like so:

    
    <table border="1px">
    <tr>
    <td>
           <table><tr><td>this is my first table</td></tr></table>
           <table><tr><td>this is my second table</td></tr></table>
           <table><tr><td>this is my third table</td></tr></table>
           <table><tr><td>this is my fourth table</td></tr></table>
           <table><tr><td>this is my fifth table</td></tr></table>
    </td>
    </tr>
    </table>
    
    HTML:
     
    skateme, Nov 2, 2008 IP
  5. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, that solution gives me outer boarder lines on each of the tables separatly, one by one. That's not I am looking for. I need the outer-boarder lines (the very outer) of the whole page itself.
     
    tptnyc, Nov 2, 2008 IP
  6. ElseAndrew

    ElseAndrew Peon

    Messages:
    77
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Give your table a class

    <td class="firstTable">
    </td>

    Then add your style sheet,

    <style>
    table.firstTable {
    border: 1px solid;
    }
    </style>

    Try that :)
     
    ElseAndrew, Nov 2, 2008 IP