Jump to content

Adding a border to table cells


shaunie

Recommended Posts

Hi,

 

Please can someone tell me how I can add a border around some of the table cells, like in the attachment?

 

Here is my code:

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table border="0" cellspacing="5" cellpadding="5">
    <tr>
      <th align="left" scope="col">Name:</th>
      <th scope="col"> <input name="practice" type="text"></th>
      <th scope="col"> </th>
      <th colspan="2" rowspan="2" scope="col">Please enter 'Y' against each element required</th>
      </tr>
    <tr>
      <td><strong>Code:</strong></td>
      <td align="center"><input name="practice_code" type="text"></td>
      <td> </td>
  </tr>
    <tr>
      <td><strong>Reference:</strong></td>
      <td align="center"><input name="nshi_reference" type="text" value="IMP/"></td>
      <td> </td>
      <td>Review</td>
      <td><select name="total_act_coa5" id="total_act_coa5">
        <option value="" selected></option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
      </select></td>
    </tr>
    <tr>
      <td><strong>Advisor:</strong></td>
      <td align="center"><input name="nurse_advisor" type="text" value=""></td>
      <td> </td>
      <td>Education</td>
      <td><select name="total_act_coa6" id="total_act_coa6">
        <option value="" selected></option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
      </select></td>
    </tr>
    <tr>
      <td><strong>Dates:</strong></td>
      <td align="center"><input name="service_dates" type="text" value="" id="service_dates"></td>
      <td> </td>
      <td>Clinic</td>
      <td><select name="total_act_coa7" id="total_act_coa7">
        <option value="" selected></option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
      </select></td>
    </tr>
    <tr>
      <td><strong>Representative:</strong></td>
      <td align="center"><input name="clinic_date" type="text" value="" id="clinic_date"></td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
    <tr>
      <td><strong>Teva RSM:</strong></td>
      <td align="center"><input name="clinic_date6" type="text" value="" id="clinic_date6"></td>
      <td> </td>
      <td> </td>
      <td> </td>
    </tr>
  </table>
</body>
</html>

post-110756-13482403588022_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/264005-adding-a-border-to-table-cells/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.