HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How to add a border and color to TD not table
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
jwset



Joined: 11 Feb 2008
Posts: 3

PostPosted: Tue Feb 12, 2008 2:29 pm     How to add a border and color to TD not table Reply with quote

I got a table and in it i want to add boder and colors to 2 different TD's in the table not to the TR or rest of the table to jst too 2 different TD's in the whole table. Can this be done and if so what code would I use.

this is the coding with out all the info in them
<table cellpadding = "5" cellspacing = "0" border = "0" width = "900">
<tr>
<td width = "220" valign = "top">
alot of infor here
</td>

<td><font color="black">.......................</font></td>
this is TD i want border and color around <td width="800" valign = "top" >
<font face = "arial" size = "2" color="white">
<font color = "yellow" size="4"><b>News Header - Febuary 8, 2008 14:30 hrs</b></font>
<br>
<font color ="orange" size = "2"><b>It is TGO's 1st year anniversay</b></font><br>
We will be working as fast as we can to get this site up and running
</font>
<br><br><br>


<font face = "arial" size = "2" color="white">
<font color = "red" size="4"><b>Upcoming Events: - Febuary 8, 2008 14:30 hrs</b></font>
<br><font color = "blue" size="2"><b>Happy Birthday goes out to our GM Catanena her Birthday is Feb. 10, so remeber to give her a Big Hug also Feb. 12 is Oagerlean Birthday so wish both of them a Happy Birthday.</b></font><br>
We will be posting here events that we have sechedule during the months.
</font>


</td>


</tr>
</table>

Thank you for help
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Wed Feb 13, 2008 10:23 am     Reply with quote

You can use styles - put something like
Code:
<style type="text/css">
td.events
{
   border: 2px solid #ff0000;
}
td.info
{
   border: 2px solid #ff00ff;
}

</style>
in the <head> and then call it in the proper place
Code:
<td class="events">

_________________
Corey
Toll Free Fax Solutions | Mile High Merchant Accounts | Expression Web Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial