Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts

    How do I show the grid lines for my table ?

    Hi,

    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

    Code:
    <table>
    	<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>
    </table>
    Thanks for any help

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Add the following into your CSS
    Code:
    table{
    border-collapse:collapse;
    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.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    May 2009
    Location
    New York City
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Instead of using the <b> bold tag outside of your <td> table cell, use it within it. You can use <strong> instead as well.

  • #4
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts
    Thanks for your help,

    I have fixed the errors

    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>
    <div>
    <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()'>
    </form>
    </div>

    and the output:




    Thanks for helping

  • #5
    Senior Coder
    Join Date
    May 2006
    Posts
    1,683
    Thanks
    28
    Thanked 4 Times in 4 Posts
    OK

    I sorted it


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •