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 4 of 4

Thread: Table woes

  1. #1
    New Coder
    Join Date
    Feb 2004
    Location
    California
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 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
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New Coder
    Join Date
    Feb 2004
    Location
    California
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, but no go. I think I'll have to come up with a simpler design

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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; 03-03-2004 at 11:07 AM.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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