A andy_jacko New Member Nov 28, 2002 #1 can u put a border round a cell in a table. if so how, if not then what would be the best alternative. regards andy
can u put a border round a cell in a table. if so how, if not then what would be the best alternative. regards andy
aphel aura New Member Nov 28, 2002 #2 Using CSS, if you don't want multiple nested tables. PHP: <?xml version="1.0" encoding="iso-8859-1"?> <!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> <TITLE>Title</TITLE> <META http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <style type="text/css"> <!-- .border { border: 1px solid #000000; } --> </style> </HEAD> <BODY text=#000000 link=#0033ff bgColor=#f5f5f5> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="border"> </td> <td width="3"> </td> <td width="150" class="border"> </td> </tr> </table> </BODY> </HTML> Last edited: Nov 28, 2002
Using CSS, if you don't want multiple nested tables. PHP: <?xml version="1.0" encoding="iso-8859-1"?> <!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> <TITLE>Title</TITLE> <META http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <style type="text/css"> <!-- .border { border: 1px solid #000000; } --> </style> </HEAD> <BODY text=#000000 link=#0033ff bgColor=#f5f5f5> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="border"> </td> <td width="3"> </td> <td width="150" class="border"> </td> </tr> </table> </BODY> </HTML>