Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2012
    Posts
    21
    Plugin Contributions
    0

    Default Need simple 'Table' code

    I want to add a simple (2 col, 9 row - with headers) table to my Shipping details page. I have code inplace and it shows up fine when in HTMLarea of the admin tools. But when I look at actual page it does not show correctly (see: http://mimirbooks.com/index.php?main_page=shippinginfo). No borders, etc.

    Can someone help me with this?

    Thanks,

    Mike

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Need simple 'Table' code

    You could add something like this to your stylesheet:

    #shippingInfoMainContent table {margin-left: 14em;}

    but if it were mine, I would give the table its own class name then something like: .tableClassName {text-align: center;}

  3. #3
    Join Date
    Jun 2012
    Posts
    21
    Plugin Contributions
    0

    Default Re: Need simple 'Table' code

    Stevesh, thanks for the help. I was hoping someone would be able to give me the html code for a simple table. I have searched the forum, but have found no leads whether there is an html code issue on zc. I can't figure out why the whole table won't show correctly. Here is the code I am using:

    <br />
    <p align="center"><strong>Media Mail Rates</strong></p>
    <br />
    <table border="4" cellspacing="5" cellpadding="5" width="40%">
    <tr>
    <th align="center">Weight (lbs.)</th>
    <th align="center">Rate</th>
    </tr>
    <tr align="center"><td>0 - 1.99</td><td>$2.49</td>
    </tr>
    <tr align="center"><td>2.0 - 2.99</td><td>$2.89</td>
    </tr>
    <tr align="center"><td>3.0 - 3.99</td><td>$3.31</td>
    </tr>
    <tr align="center"><td>4.0 - 4.99</td><td>$3.73</td>
    </tr>
    <tr align="center"><td>5.0 - 5.99</td><td>$4.15</td>
    </tr>
    <tr align="center"><td>6.0 - 6.99</td><td>$4.57</td>
    </tr>
    <tr align="center"><td>7.0 - 7.99</td><td>$4.99</td>
    </tr>
    <tr align="center"><td>8.0 - 8.99</td><td>$5.39</td>
    </tr>
    <tr align="center"><td>9.0 - 9.99</td><td>$5.79</td>
    </tr>
    <tr align="center"><td>10.0 - 10.99</td><td>$6.19</td>
    </tr>
    </tbody>
    </table>

    Mike

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Need simple 'Table' code

    You're fighting your Template Monster template. This in stylesheet_tm.css is setting the td border to 0:

    table, td, img {border:0;}

    I'll suggest again that you give your table its own id:

    <table border="4" cellspacing="5" cellpadding="5" width="40%"> becomes <table id="infotable">

    Then add a infotable rule - #infotable {border: 1px solid;} to one of your stylesheets.

 

 

Similar Threads

  1. v139h Simple PHP code question
    By DigitalShadow in forum General Questions
    Replies: 4
    Last Post: 26 Feb 2013, 08:13 PM
  2. v139h Adding a simple table
    By gloerick in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Dec 2012, 12:30 AM
  3. Help: Creating Simple Form to Post to New DB Table
    By shakes222 in forum General Questions
    Replies: 2
    Last Post: 14 Dec 2010, 11:04 PM
  4. need simple code
    By tony_sar in forum General Questions
    Replies: 0
    Last Post: 6 May 2009, 09:22 PM
  5. Plz answer this simple CODE Question
    By odayict in forum General Questions
    Replies: 3
    Last Post: 10 Jan 2008, 09:26 AM

Posting Permissions

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