Web Analytics Made Easy -
StatCounter Table woes - CodingForum

Announcement

Collapse
No announcement yet.

Table woes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Table woes

    Hey all... I'm havin a slight prob with my tables. What I need is a table on the left of the text, as a border. I know it's placement of the <table> elements, but I can't get it. Could you take a crack at it?
    PHP Code:
    <table class="normal" width="100%" height="100%" border="0">
    <
    tr>
    <
    td valign="top">
        <
    table width="100%" height="45" border="0" cellpadding="0" cellspacing="0">
            <
    tr>    
                <
    td valign="top" width="599" height="45"><img src="images/head.png" width="599" height="45"></td>
                <
    td width="100%" bgcolor="#000000" valign="top">&nbsp;</td>
            </
    tr>
        </
    table>
        <
    table width="100%" height="10" bgcolor="#C9C9C9" cellpadding="0" cellspacing="0">
            <
    tr>
                <
    td height="10">&nbsp;</td>
            </
    tr>
        </
    table>
            <
    table width="80%" height="100%" border="0">
            <
    tr>
              <
    td class="content" valign="top">
                <
    h3>Welcome to Steve Geer 
                  Productions
    </h3>
                <
    pWelcome to the productions of Steven GeerFrom Photography to 
                  Web development 
    and computer programmingSteve has everything that 
                  you need 
    for your project.</p>
                <
    p><h4>Recent Projects</h4></p>
                </
    td>
            </
    tr>
        </
    table>
    </
    td>
    </
    tr>
    </
    table
    The HTML, body, etc tags are there, but I didn't copy paste em.

    Thanks

  • #2
    Most of the time you don't need to nest tables. In this case, I simply added another cell to the left of the text. Is this what you were looking for, or have I misunderstood your question?

    PHP Code:
    <table class="normal" width="100%" height="100%" border="0">
    <
    tr>
    <
    td valign="top">
        <
    table width="100%" height="45" border="0" cellpadding="0" cellspacing="0">
            <
    tr>    
                <
    td valign="top" width="599" height="45"><img src="images/head.png" width="599" height="45"></td>
                <
    td width="100%" bgcolor="#000000" valign="top">&nbsp;</td>
            </
    tr>
        </
    table>
        <
    table width="100%" height="10" bgcolor="#C9C9C9" cellpadding="0" cellspacing="0">
            <
    tr>
                <
    td height="10">&nbsp;</td>
            </
    tr>
        </
    table>
            <
    table width="80%" height="100%" border="0">
            <
    tr>
              <
    td valign="top" width="20">&nbsp;</td>
              <
    td class="content" valign="top">
                <
    h3>Welcome to Steve Geer 
                  Productions
    </h3>
                <
    pWelcome to the productions of Steven GeerFrom Photography to 
                  Web development 
    and computer programmingSteve has everything that 
                  you need 
    for your project.</p>
                <
    p><h4>Recent Projects</h4></p>
                </
    td>
            </
    tr>
        </
    table>
    </
    td>
    </
    tr>
    </
    table
    "Simplicity provides confidence, reliability, compactness, and speed."
    --Charles H. Moore

    Comment


    • #3
      Thanks, but no go. I think I'll have to come up with a simpler design

      Comment


      • #4
        CSS?

        Steve,

        how about using CSS to create borders instead of abusing tables...? That'll sure make your life a lot easier...

        Update:
        I took the trouble of trying out that piece of coding to see what it rendered like, and I fail to see any reason to use any table at all, even if it would be to avoid CSS positioning: there is no positioning!
        Steve, could you supply an example (if necessary, a picture) of what you want to accomplish? It should be fairly easy to guide you to the desired result.
        Last edited by ronaldb66; Mar 3, 2004, 05:07 AM.
        Regards,
        Ronald.
        ronaldvanderwijden.com

        Comment

        Working...
        X