View Full Version : How do I show the grid lines for my table ?

05-02-2009, 09:55 AM

I have a simple table displaying some prices but
it shows up with out any grid lines.

How do I show the grid lines for my table ?

This is my code

<th>New Domain Registration and DNS Configuration.</th>
<tr><b><td>Top Level Domains</td><td>Cost</td><td>Min. Years</td><td>Total Cost</td></b></tr>
<tr><td>.biz &nbsp; &nbsp;.com &nbsp; &nbsp;.info &nbsp; &nbsp;.name &nbsp; &nbsp;.net &nbsp; &nbsp;.org</td><td>$14.70</td><td><center>1</center></td><td>$14.70</td></tr>
<tr><td>&nbsp;.eu &nbsp; &nbsp;.us</td><td>$19.70</td><td><center>1</center></td><td>$19.70</td></tr>
<tr><td>.co.uk &nbsp;</td><td>$19.70</td><td><center>2</center></td><td>$39.40</td></tr>

Thanks for any help :)

05-02-2009, 10:37 AM
Add the following into your CSS

border:1px solid #000;
table td{
border:1px solid #000;
btw, your markup is invalid, refer http://htmldog.com/reference/htmltags/th/ for the correct usage.

05-02-2009, 11:02 AM
Instead of using the <b> bold tag outside of your <td> table cell, use it within it. You can use <strong> instead as well.

05-02-2009, 01:10 PM
Thanks for your help,

I have fixed the errors :thumbsup:

On the same page I am trying to display
a form button lext to some text, but it keeps going down to the
line below.

How can I fix this ?

This is my code:

<b><big><br>fred-jameson.com is <span style="color: green;">Available.</span></big><br></b>
<b>Select this donaim name now, before somebody else registers it! :</b><form method='post' action='ord_dom.php'>
<span><input type='hidden' name = 'cont' value = 'yes' ></span>
<input id = 'button1' type='submit' value='Select and Continue' style='border: 1px solid #cccccc; background-color: #ffffff;' onmouseover='chg_col()'>

and the output:


Thanks for helping :)

05-02-2009, 04:15 PM

I sorted it :thumbsup:

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum