Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

How to make table border

hello-

can someone explain to me how they make the table border on the stock module at

   http://www.excite.com/


when i view the html i see the table border being set to 0.

thanks - u
0
uron6342
Asked:
uron6342
  • 6
  • 4
  • 3
  • +3
1 Solution
 
DreamMasterCommented:
They put a table around with a background color and cellpadding of 1...

Max.
0
 
DreamMasterCommented:
That is...as far as I can see in the messy code that they have... (probably generated....)
0
 
nimaigCommented:
Try this :
<html>
<head>
</head>
<body >
<form>

     <table border=0 cellspacing=1 cellpadding=0 bgcolor="#cccccc">
          <tr bgcolor="#ffffff">
               <td >Testing</td>
               <td>Testing</td>
               <td>Testing</td>
               <td>Testing</td>
          </tr>
          <tr bgcolor="#ffffff">
               <td>Testing</td>
               <td>Testing</td>
               <td>Testing</td>
               <td>Testing</td>
          </tr>
          <tr bgcolor="#ffffff">
               <td>Testing</td>
               <td>Testing</td>
               <td>Testing</td>
               <td>Testing</td>
          </tr>
          <tr bgcolor="#ffffff">
               <td>Testing</td>
               <td>Testing</td>
               <td>Testing</td>
               <td>Testing</td>
          </tr>
         
     </table>
     
</form>
</body>

</html>


0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
DreamMasterCommented:
nimaig > What do you mean try this? He was asking how they do it....nothing else...

Max.
0
 
edemcsCommented:
just set your borderColor equal to gray.  Those borders which look like Microsoft windows are images that they created.
<Table BorderColor=Gray>

I'm not sure if this works in Netscape, but I'm sure Netscape can do it also.
0
 
edemcsCommented:
I may not have read your question correctly, oh well.  Hope that helps anyway.
0
 
klykkenCommented:
edemcs,
No, netscape will _not_ do bordercolor.
--
klykken
0
 
klykkenCommented:
uron6342,
Dreamaster gave you the correct answer, a quick look at the source showed that.
--
klykken
0
 
DreamMasterCommented:
Thank you klykken... :-)

Max.
0
 
edemcsCommented:
nimaig,
   EE is for people to exchange ideas, and your contribution is just as good as anyone else's.  I don't know how new you are to this, but I am, and I've come across some egotistical computer geeks like DreamMaster that get a little cocky sometimes.  Thanks for your input.
0
 
DreamMasterCommented:
Excuse me????

I was just asking why he did what he did...nothing else...

Max.
0
 
nimaigCommented:
Execuse me DreamMaster ... don't be so violent ... I am just contributing my ideas ... let uron6342 decide what he wants ... :)

Thanks edemcs !!! for supporting me ... :)
0
 
DreamMasterCommented:
How would you react nimaig if you would just have been called egotistical???

Sorry if I offended anyone I can't see that I did....but there was no need for edemcs to respond to this the way he did...

Offcourse I let uron6342 decide what he wants...if I didn't I would have locked the question...

Max.
0
 
uron6342Author Commented:
sigh...i think you all helped me. i dont want anyone to be mad at me. ill give dreammaster and nimaig 50 points each if you wish. nimaig, i will make a dummy question for you if you reply. thanks all - u
0
 
klykkenCommented:
uron,
you might want to check nimags solution first.
It is a IE solution only, and does not work with netscape, the same problem as was with edemcs solution.

dreamaster was the first to answer and the only one who have given you a solution that (1) follows html standard and (2) works crossbrowser at the same time.

I think your'e all set :)
--
klykken
0
 
uron6342Author Commented:
hello again.

i guess i am still a bit confused. i got it to work in ie but not ns. i dont understand why the border doesnt appear in ns. the source is below. thanks = )

       
<html>

        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
                <title>My Stocks</title>
        </head>

        <body bgcolor="#ffffff">

                <form action="Stock.asp" method=post name=frmThis>
       
       
       
       
                        <table border="0" cellpadding="1" cellspacing="1" width="100%" bgColor="#999999">
                                <tr bgColor="#dddddd">
                                        <td width="33%">
                                                <p align="center"><b><font face="Arial">Symbol</font></b></p>
                                        </td>
                                        <td width="33%">
                                                <p align="center"><b><font face="Arial">Price</font></b></p>
                                        </td>
                                        <td width="34%">
                                                <p align="center"><b><font face="Arial">Change</font></b></p>
                                        </td>
                                </tr>
                               
                                <tr bgColor='#ffffff'>
<td align='left'> ^DJI</td>
<td align='right'>10984.69</td>
<td align='right'><font color='#FF0000'>-106.05 (-0.96%)</font></td>
</tr>
<tr bgColor='#ffffff'>
<td align='left'> ^IXIC</td>
<td align='right'>2212.88</td>
<td align='right'><font color='#FF0000'>-51.12 (-2.26%)</font></td>
</tr>
<tr bgColor='#ffffff'>
<td align='left'> ^SPX</td>
<td align='right'>1267.04</td>
<td align='right'><font color='#FF0000'>-9.92 (-0.78%)</font></td>
</tr>
<tr bgColor='#ffffff'>
<td align='left'> asdasd</td>
<td align='right'>No such ticker symbol.</td>
<td align='right'>No such ticker symbol.</td>
</tr>
<tr bgColor='#ffffff'>
<td align='left'> xrx</td>
<td align='right'>8.51</td>
<td align='right'><font color='#FF0000'>-0.64 (-6.99%)</font></td>
</tr>
               
                               
                        </table>
                       
                        <table cellSpacing="1" cellPadding="1" width="100%" border="0">
                                <tr>
                                        <td style="WIDTH: 75%" align=left width="75%"><p><font size='2'>Last updated Fri Jun 08 12:05:35 2001 </font></p></td>
                                        <td style="WIDTH: 25%" align=right width="25%"><input type="submit" value="Edit Stocks" name="btnSubmit"></td>
                                </tr>
                        </table>
                       
                        </form>


        </body>

</html>

0
 
amp072397Commented:
Hi uron6342:

I apologize for the non-professional behavior of the experts in this thread.

Thanks for your patience with it and glad you got it resolved.

amp
Community Support Moderator
Experts Exchange
0
 
uron6342Author Commented:
ok, i got this all worked out. in order for it to work in netscape with white cells, you need to wrap the inner table in an outer table with the background to gray and the cellspacing and cellpadding set to 0.
0
 
klykkenCommented:
uron good you got it all worked out :)
This is almost teh same as in the first comment you got. It said (as I interpret it) to put  a table outside the table you were talking about. That would give you only the grey border around the table in both browsers, while the one you found in addition will give you bordercolor in between the cells as well :)
--
klykken
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 6
  • 4
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now