0
Welcome Guest! Login
0 items Join Now

Code Question with tables, any ideas on what I am missing from my code?

  • Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • Follow this link:

      site476.mysite4now.net/ericpollard/site1...ticle&id=20&Itemid=4

      It is a Rocket Theme template and I am having some issues in the content area with tables. There is a main table that borders the outside of the content area that I was able to make appear with no problem, and then there are three tables within the main table, but only the bottom and right side of their borders are showing.

      I attached a rough drawing of what the content area layout should be and also a .txt file with the code on the page related to the tables... Let me know if I am missing something here because it seems like it should be working...
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • You are using tables, don't use tables, use DIVs, i.e.

      <div class="module-style2"><div><div><div>
      </div></div></div></div>
    • James Spencer / Developer & Support / Hull, UK
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • So only use <div> tags and remove any table tags?
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • Replace:
      <table style="height: 150px;" class="module-style2" border="0" cellpadding="5" cellspacing="5" width="100%">
      <thead> </thead> 
      <tbody>
      <tr style="height: 100%;">
      <td style="width: 63%;">
      <h3>Green Glue in Five Gallon Buckets</h3>
      Green Glue in buckets, wtf!?!</td>
      <td style="width: 37%;">adsfasdfsadf</td>
      </tr>
      </tbody>
      </table>
       
      <table class="module-style2">
      <tbody>
      <tr>
      <td style="width: 63%;">
      <h3>Green Glue in Five Gallon Buckets</h3>
      Green Glue in buckets, wtf!?</td>
      <td style="width: 37%; height: 100px;">adsfasdfsadf</td>
      </tr>
      </tbody>
      </table>
      <table style="height: 150px;" class="module-style2" border="0" cellpadding="3" cellspacing="3" width="100%">
      <tbody>
      <tr>
      <td style="width: 63%;">
      <h3>Green Glue in Five Gallon Buckets</h3>
      Green Glue in buckets, wtf!?<br /></td>
      <td style="width: 37%;">adsfasdfsadf</td>
      </tr>
      </tbody>
      </table>

      With this:
      <table style="height: 150px;" class="module-style2" border="0" cellpadding="5" cellspacing="5" width="100%">
      <tr style="height: 100%;">
      <td style="width: 63%;">
      <h3>Green Glue in Five Gallon Buckets</h3>
      Green Glue in buckets, wtf!?!</td>
      <td style="width: 37%;">adsfasdfsadf</td>
      </tr>
      </table>
       
      <table style="height: 150px;" class="module-style2" border="0" cellpadding="5" cellspacing="5" width="100%">
      <tr style="height: 100%;">
      <td style="width: 63%;">
      <h3>Green Glue in Five Gallon Buckets</h3>
      Green Glue in buckets, wtf!?!</td>
      <td style="width: 37%;">adsfasdfsadf</td>
      </tr>
      </table>
       
      <table style="height: 150px;" class="module-style2" border="0" cellpadding="5" cellspacing="5" width="100%">
      <tr style="height: 100%;">
      <td style="width: 63%;">
      <h3>Green Glue in Five Gallon Buckets</h3>
      Green Glue in buckets, wtf!?!</td>
      <td style="width: 37%;">adsfasdfsadf</td>
      </tr>
      </table>

      Been a while since i messed around with tables so hopefully this works :P
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • Ok, I replaced with the above, but the top and the left side of the "3 small tables" is still not showing...

      Any ideas?
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • So is it not possible to use tables within the 'rounded borders'?

      Each time I try to create tables within the <div class="module-style2"> setup it leaves the gaps on the left and right side of the border.

      If anybody has any ideas I would really appreciate the help. Thanks.
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • You appear to have it setup, looks fine to me?
    • James Spencer / Developer & Support / Hull, UK
  • Re: Code Question with tables, any ideas on what I am missing from my code?

    Posted 15 years 11 months ago
    • Yeah, I couldn't get it to work with the <div> tags so I created tables and used the corner images used with the <div class="style2"> tags (or whatever it was)...

      So, yeah, I still couldn't get it to work with just straight <div> tags... Still open for ideas as the new tables still give me issues..

Time to create page: 0.050 seconds