Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Borders

Status
Not open for further replies.

WJProctor

Programmer
Jun 20, 2003
151
GB
Hi, im messing on with some tables but want to have some parts with a border and other parts with out, and similar with Cell Spacing. Is there any way to do this or not?

Regards

JP
 
Sure:
Code:
  <table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
   <tr>
    <td style=&quot;border-left:3px solid #0000FF;
	           border-top:3px solid #880000;&quot;>Funky</td>
    <td style=&quot;border-left:3px solid #00FF00;
	           border-top:3px solid #000088;&quot;>Bordered</td>
    <td style=&quot;border-left:3px solid #FF0000;
	           border-top:3px solid #008800;&quot;>Table</td>
   </tr>
   <tr>
    <td style=&quot;border-left:3px solid #FF00FF;
	           padding-left:10px;
			   padding-right:30px;&quot;>Funky</td>
    <td style=&quot;border-left:3px solid #FFFF00;
	           padding-top:5px;
			   padding-bottom:25px;&quot;>padded</td>
    <td style=&quot;border-left:3px solid #00FFFF;
	           padding:10px;&quot;>Table</td>
   </tr>
  </table>

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top