-
Cells of Table
Hi
Here is an intreseting problem the following is the code I wrote to set the width and height of different html pages and one page sets its own sizes .
Here is the code I tried with % too but it is not working> CAn somebody solve this problem
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./resume2.html" target="right">xyz</a></th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./emp1.html" target="right">abc</a></th>
<th bgcolor="#F5F5DC" width="80" height = "25" bordercolor="#F5F5DC" align="center">Stes</th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"> <a href="./stren.html" target="right">gth</a></th>
Neti
-
I don't understand what the problem is, what is it supposed to do?
-
The above mention code sets the width and height of Table heading .The headings of Table should be same in all pages .Hope this gives a better idea of my problem
-
:confused:
They are all the same size. I don't really know what you are trying to do here. What you want it to do and what is it doing?
-
Yeah, your code looks fine and works fine for me....what is the problem?
-
I don't see a better way to explain my problem so I pasting the code for both files named as Noname1 & Noname2 respectively.........OPen these files in Netscape only
Noname2.html
<table width ="80%" height="60%" border="0" bordercolor="#F5F5DC" >
<tr>
<th bgcolor="#F5F5DC" width="80" height = "25" bordercolor="#F5F5DC" align="center"> Education </th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./emp1.html" target="right">Experience</a></th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./skills.html" target="right">Skills</a></th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"> <a href="./stren.html" target="right">Strength</a></th>
</tr>
<tr><td colspan=4> </td></tr>
<tr>
<td colspan="4" >
<!-- <p align="left"><b><u>Education</u></b></p> -->
<b><u>Education</u></b>
<p align="left"><b> MS in Computer Engineering Technology (Jan. 2001 – present)</b></p>
</center>
<blockquote>
<p align="left">
<b>xxxxxxxx</b><br>
xxxxxxxxxxxxxxxxxxxxxxxxxx<br>
xxxxxxxxxxxxxxxxxxxxxxxx
<center>
<p align="left"><b>xxxxxxxxxxxxxxxxxxxxxxxxxxx</b></p>
</center>
<p align="left">
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>
<b>xxxxxxx</b><br>
</blockquote>
</td>
</tr>
</table>
Noname1.html
<table width ="80%" height="60%" border="0" bordercolor="#F5F5DC" >
<tr>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./resume2.html" target="right">Education</a></th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./emp1.html" target="right">Experience</a></th>
<th bgcolor="#F5F5DC" width="80" height = "25" bordercolor="#F5F5DC" align="center">Skills</th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"> <a href="./stren.html" target="right">Strength</a></th>
</tr>
<tr><td colspan=4> </td></tr>
<tr>
<td align="center">
<p align="left"><b><u>Skills</u></b></p><td></tr>
<tr><td colspan=4> </td></tr>
<tr ><td colspan=2>Languages:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxx </td></tr>
<tr ><td colspan=2>Operating Systems:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxx</td></tr>
<tr ><td colspan=2>Applications:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxx </td></tr>
<tr><td colspan=2>Database</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxxi</td></tr>
<tr ><td colspan=2>Web:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</td></tr>
<tr><td colspan=2>Graphical User Interface:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</td></tr>
</table>
Please look at it carefully
Neti
-
well, you should have said netscape...
anyway, NS does not support the <th> tag
-
I don't think so look at this link
http://html.about.com/library/tags/b...1&terms=th+tag
You can get more clarification
Neti
-
if you want the <th> cells the same size you will have to make it a different table, apart from the rest.
like so--
Code:
<table width ="80%" height="10%" border="0" bordercolor="#F5F5DC" >
<tr>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./resume2.html" target="right">Education</a> </th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"><a href="./emp1.html" target="right">Experience</a></th>
<th bgcolor="#F5F5DC" width="80" height="25" bordercolor="#F5F5DC" align="center">Skills</th>
<th bgcolor="#8B0000" width="80" height = "25" bordercolor="#F5F5DC" align="center"> <a href="./stren.html" target="right">Strength</a></th>
</tr>
</table>
<table>
<tr>
<td align="center">
<p align="left"><b><u>Skills</u></b></p><td></tr>
<tr><td colspan=4> </td></tr>
<tr ><td colspan=2>Languages:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxx </td></tr>
<tr ><td colspan=2>Operating Systems:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxx</td></tr>
<tr ><td colspan=2>Applications:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxx </td></tr>
<tr><td colspan=2>Database</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxxi</td></tr>
<tr ><td colspan=2>Web:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</td></tr>
<tr><td colspan=2>Graphical User Interface:</td><td colspan=2>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</td></tr>
</table>
-
damn! :D Sorry, i must have been thinking of something else :(