Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.