shaunie Posted June 11, 2012 Share Posted June 11, 2012 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> Link to comment https://forums.phpfreaks.com/topic/264005-adding-a-border-to-table-cells/ Share on other sites More sharing options...
Pikachu2000 Posted June 11, 2012 Share Posted June 11, 2012 You could look at the page source from the example, and see how they did it. It probably uses <fieldset></fieldset> with a border. Link to comment https://forums.phpfreaks.com/topic/264005-adding-a-border-to-table-cells/#findComment-1352976 Share on other sites More sharing options...
shaunie Posted June 11, 2012 Author Share Posted June 11, 2012 Hi, Thanks for your reply, I created the screenshot in photoshop to give an example of what I am trying to do, hope this makes sense, sorry for the confusion! Link to comment https://forums.phpfreaks.com/topic/264005-adding-a-border-to-table-cells/#findComment-1352977 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.