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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table problem

Status
Not open for further replies.

PhoenixDown

Programmer
Jul 2, 2001
279
0
0
CA
I'm trying to fix this table but I don't know how, lol:

Here's the code:

Code:
<table border=&quot;0&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; width=&quot;75%&quot;>
<tr><td>
<table border=&quot;0&quot; width=&quot;100%&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;>
<tr BGcolor=&quot;#5d7790&quot;>
<TD COLSPAN=&quot;4&quot;>
<font size=&quot;-1&quot; face=&quot;Arial&quot; color=&quot;#FFFFFF&quot;><b><center>Current Administrators</center></b></font>
</td>
</tr>
<tr>
<TD><b><font size=&quot;-1&quot; face=&quot;Arial&quot;>Username</font></b>
</td>
<TD><b><font size=&quot;-1&quot; face=&quot;Arial&quot;>Password</font></b>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><b>Delete?</b></font>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><b>Modify?</b></font>
</td>
</tr>
<tr>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;>test</font>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;>test</font>
</td>
<TD><input type=&quot;CHECKBOX&quot; name=&quot;test&quot; value=&quot;Delete&quot;>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><A HREF=&quot;admin.cgi?action=modify_admin&admin=test&quot; TARGET=&quot;_new&quot;>Modify</A></font>
</td>
</tr>
</table></td></tr></table>

Well, I was wondering if someone could edit that code so the table would look like this:

test.jpg


(I would only like the thin border.)

THANKS! :-D Web site: Email: calvin@puremadnezz.com
AIM: XCalvin1984
MSN: xcloud2000x@hotmail.com
ICQ: 135616065 (I don't really use ICQ alot.)
Yahoo Messenger: xcloud2000x (I don't really use Yahoo messenger alot.)

Contact me for any programming help and whatnot.
 
Hi mate,

I`ve not got much time to I will try to explain quickly..

The following way is using an external css file as that is what I use. You can alter it how you like.

In the css file(Named style.css, include the following,

.border1 {
border-color: #000000;
border-width: 1px;
border-style: solid;

In The head section of your html file include the following,

<LINK REL=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; />

And the table code is,

<table bordercolor=&quot;#000000&quot; class=&quot;border1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;75%&quot;>
<tr><td>
<table border=&quot;0&quot; width=&quot;100%&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;>
<tr BGcolor=&quot;#5d7790&quot;>
<TD COLSPAN=&quot;4&quot;>
<font size=&quot;-1&quot; face=&quot;Arial&quot; color=&quot;#FFFFFF&quot;><b><center>Current Administrators</center></b></font>
</td>
</tr>
<tr>
<TD><b><font size=&quot;-1&quot; face=&quot;Arial&quot;>Username</font></b>
</td>
<TD><b><font size=&quot;-1&quot; face=&quot;Arial&quot;>Password</font></b>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><b>Delete?</b></font>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><b>Modify?</b></font>
</td>
</tr>
<tr>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;>test</font>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;>test</font>
</td>
<TD><input type=&quot;CHECKBOX&quot; name=&quot;test&quot; value=&quot;Delete&quot;>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><A HREF=&quot;admin.cgi?action=modify_admin&admin=test&quot; TARGET=&quot;_new&quot;>Modify</A></font>
</td>
</tr>
</table></td></tr></table>

Any other problems, just ask..

Hope this helps

Wullie

 
Sorry Mate,

Just noticed a few mistakes in my last post,

Trust me to rush when I`ve been drinking... LOL

Use the following instead,

In the css file(Named style.css), include the following,

.border1 {
border-color: #5d7790;
border-width: 1px;
border-style: solid;

In The head section of your html file include the following,

<LINK REL=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; />

And the table code is,

<table class=&quot;border1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;75%&quot;>
<tr><td>
<table border=&quot;0&quot; width=&quot;100%&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;>
<tr BGcolor=&quot;#5d7790&quot;>
<TD COLSPAN=&quot;4&quot;>
<font size=&quot;-1&quot; face=&quot;Arial&quot; color=&quot;#FFFFFF&quot;><b><center>Current Administrators</center></b></font>
</td>
</tr>
<tr>
<TD><b><font size=&quot;-1&quot; face=&quot;Arial&quot;>Username</font></b>
</td>
<TD><b><font size=&quot;-1&quot; face=&quot;Arial&quot;>Password</font></b>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><b>Delete?</b></font>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><b>Modify?</b></font>
</td>
</tr>
<tr>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;>test</font>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;>test</font>
</td>
<TD><input type=&quot;CHECKBOX&quot; name=&quot;test&quot; value=&quot;Delete&quot;>
</td>
<TD><font size=&quot;-1&quot; face=&quot;Arial&quot;><A HREF=&quot;admin.cgi?action=modify_admin&admin=test&quot; TARGET=&quot;_new&quot;>Modify</A></font>
</td>
</tr>
</table></td></tr></table>

Hope this helps,
Wullie

 
Thanks for the reply, but can you edit that so the table will do that without the use of CSS? Thanks again! Web site: Email: calvin@puremadnezz.com
AIM: XCalvin1984
MSN: xcloud2000x@hotmail.com
ICQ: 135616065 (I don't really use ICQ alot.)
Yahoo Messenger: xcloud2000x (I don't really use Yahoo messenger alot.)

Contact me for any programming help and whatnot.
 
You don't have to make a css if you don't want, but it's much nicer...

Copy this the header tag (<head>...</head>)

<style type=&quot;text/css&quot;>
<!--
.border1 {
border-color: #5d7790;
border-width: 1px;
border-style: solid;
-->
</style>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top