...

View Full Version : weird -Table border is not working



vijetha
07-03-2010, 08:42 AM
hi Friends we are making our college site and as part of the Li bray books list i used a table for the tabular data and we gave a border to the same table and some thing weird its not working .Any help will be highly appreciated.

regards
Vijetha

This is URL (http://)



<table width="30%" border="0" cellpadding="2" cellspacing="4" bordercolor="#003BDE" >
<tr>
<td width="73%"><span class="ClassTableText">&nbsp;Total Volumes</span></td>
<td width="27%">&nbsp;</td>
</tr>
<tr>
<td bordercolor="#0034D8"><span class="ClassTableText">&nbsp;Books</span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="ClassTableText">Bound Journals</span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="ClassTableText">Standards &amp; Reports</span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="ClassTableText">&nbsp;Journals subscribed </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="ClassTableText">&nbsp;Theses</span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="ClassTableText">&nbsp;Indian Patents</span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><span class="ClassTableText">&nbsp;CD ROM</span></td>
<td>&nbsp;</td>
</tr>
</table>

Candan
07-03-2010, 08:49 AM
Where is this table you are referring too? Is it the first occurence of <table when you search for it in the source code? Ifso, try changing Border="0" to border="1". 0 means No in computer language, and 1 means yes.

abduraooft
07-03-2010, 08:53 AM
Validator says
Line 119, Column 86: there is no attribute "bordercolor"

… width="30%" border="0" cellpadding="2" cellspacing="4" bordercolor="#003BDE" >
Make use of CSS, like

<table width="30%" cellpadding="2" cellspacing="4" class="list" >


table.list, table.list td {
border:1px solid #003BDE;
border-collapse:collapse;
}
..and of course remove border="0"

vijetha
07-05-2010, 08:20 AM
Thanks a lot



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum