19 users online (0 members and 19 guests)  


  Results 1 to 3 of 3

Related

  1. Replies: 0
  2. Error MySQL Error: 1064 - subqueries    Forum: PHP Forum
    Replies: 0
  3. Replies: 7
  4. Replies: 5
  5. border shows but I set no border?    Forum: HTML Forum
    Replies: 2
  1. #1
    checkmate's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    1

    Unhappy how to make a error border

    <table width="200" border="0">
    <div style="border-color:#FF0000;border-style:solid">
    <tr>
    <td>A</td>
    <td><input type="text" name="textfield" id="textfield" /></td>
    </tr>
    </div>
    <div>
    <tr>
    <td>B</td>
    <td><input type="text" name="textfield2" id="textfield2" /></td>
    </tr>
    </div>
    <div>
    <tr>
    <td>C</td>
    <td><input type="text" name="textfield3" id="textfield3" /></td>
    </tr>
    </div>
    </table>

    I just want to make the border of the div be red, but it dose not work inside <talbe> , how can I make it be red ??
    thank u all

  2. #2
    fric's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2007
    Location
    Mauritius
    Posts
    25

    Re: how to make a error border

    then try to put it outside

    <div style="border-color:#FF0000;border-style:solid">
    <table width="200" border="0">
    <tr>
    <td>A</td>
    <td><input type="text" name="textfield" id="textfield" /></td>
    </tr>
    </div>
    <div>
    <tr>
    <td>B</td>
    <td><input type="text" name="textfield2" id="textfield2" /></td>
    </tr>
    </div>
    <div>
    <tr>
    <td>C</td>
    <td><input type="text" name="textfield3" id="textfield3" /></td>
    </tr>
    </table>
    </div>

  3. #3
    dcuerrier's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Location
    Brossard, Quebec, Canada
    Posts
    13

    Re: how to make a error border

    Hello checkmate,
    In a <table></table> you may only put <tr></tr>. In a <tr></tr> you may only put a <td></td> or <th></th>. So like fric said, just write you <div> outside your table section and everything will work



Tags for this Thread