Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I wants to make border color in table as given below:
HTML
<table><tbody><tr style="height:50px;border-removed1px solid #F9C004;">
<td>

</td>

</tr></tbody></table> 

I didn't able to see as changed border color?

NB: Is possible for border color for <table><tbody><tr> ?
Posted
Updated 5-Jul-12 3:54am
v2
Comments
ahmed559 5-Jul-12 9:17am    
Is possible border color for <tr> ?
ahmed559 5-Jul-12 9:17am    
Is possible for border color for ?

<tr style="height:30px; background-color:#fffbf1; border-bottom-color:#red; border-weight:1px;">
</tr>
bhagirathimfs 5-Jul-12 9:39am    
you can set the bordercolor of tr.
<tr bordercolor="black"></tr>
bhagirathimfs 5-Jul-12 10:00am    
First set the border of the table and than change the color of the border.

1 solution

You need to define border color, style and thickness to see a defined color.

Try:
HTML
<table style="height:50px;border-color: red; border-width:thick; border-style:solid">
   <tr>
      <td>
          some text
      </td> 
   </tr>
</table> 

Sample:


some text


Some Text
 
Share this answer
 
v2
Comments
ahmed559 5-Jul-12 11:07am    
no, That's not a problem for table .But in <tr> ?
ahmed559 5-Jul-12 11:08am    
also possible for <td> !!!
Sandeep Mewara 5-Jul-12 11:18am    
not in TR but in TD

Updated answer.
ahmed559 5-Jul-12 11:20am    
That's ok.But in <TR> .Any idea? background color is possible.My problem is in <TR>
Sandeep Mewara 5-Jul-12 11:29am    
TR element does not have a border property.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900