Nested Table - what's wrong with this code?

Discussion in 'HTML' started by michaaal, Aug 9, 2004.

  1. michaaal

    michaaal Guest

    Here is a simplified version of my code which utilizes a nested table.
    I realize there is no SRC for the IMG, but I have tested it both with and
    without a legitimate path and it doesn't seem to make a difference, so for
    the time being I'm leaving the SRC blank.

    My goal is to have a table next to an image...something like this...

    ---------------------------------------------
    Search
    Catalog -------> The image is to the right
    ---------------------------------------------


    The problem is the browser displays the output something like this...
    ---------------------------------------------
    Search
    Catalog

    The image is below
    ---------------------------------------------
    Also, the above information must exist inside the current table.

    I realize that I could separate the Search Catalog and image into two
    different TD cells, however, I don't want to do that - I need them in the
    same cell. (If you really really must know when then email me and I am
    happy to tell you).

    Here's the code:

    <html>

    <body>

    <table border="1">
    <tr>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    </td>
    </tr>
    <tr>
    <td>
    <table border="1">
    <tr>
    <td>
    Search<br>Catalog
    </td>
    </tr>
    </table><img src="">
    </td>
    <td>
    </td>
    </tr>
    </table>

    </body>

    </html>
    michaaal, Aug 9, 2004
    #1
    1. Advertising

  2. michaaal

    Ryan Stewart Guest

    "michaaal" <> wrote in message
    news:pgBRc.7670$...
    > Here is a simplified version of my code which utilizes a nested table.
    > I realize there is no SRC for the IMG, but I have tested it both with and
    > without a legitimate path and it doesn't seem to make a difference, so for
    > the time being I'm leaving the SRC blank.
    >
    > My goal is to have a table next to an image...something like this...
    >
    > ---------------------------------------------
    > Search
    > Catalog -------> The image is to the right
    > ---------------------------------------------
    >
    >
    > The problem is the browser displays the output something like this...
    > ---------------------------------------------
    > Search
    > Catalog
    >
    > The image is below
    > ---------------------------------------------
    > Also, the above information must exist inside the current table.
    >
    > I realize that I could separate the Search Catalog and image into two
    > different TD cells, however, I don't want to do that - I need them in the
    > same cell. (If you really really must know when then email me and I am
    > happy to tell you).
    >
    > Here's the code:
    >

    And your problem. You've got all this:
    <table border="1">
    <tr><td></td></tr>
    <tr><td></td></tr>
    <tr>
    <td>
    <table border="1"><tr><td>Search<br>Catalog</td></tr></table>
    <img src="">
    </td>
    <td></td>
    </tr>
    </table>

    when all you probably need is something like this:
    <p></p>
    <p></p>
    <p>
    <img style="float: right;" src="">
    Search<br/>Catalog
    </p>
    <p></p>

    with a little CSS.
    Ryan Stewart, Aug 9, 2004
    #2
    1. Advertising

  3. michaaal

    lime Guest

    > My goal is to have a table next to an image...something like this...
    >
    > ---------------------------------------------
    > Search
    > Catalog -------> The image is to the right
    > ---------------------------------------------
    >
    >
    > The problem is the browser displays the output something like this...
    > ---------------------------------------------
    > Search
    > Catalog
    >
    > The image is below
    > ---------------------------------------------
    >
    > Here's the code:
    >
    > <html>
    >
    > <body>
    >
    > <table border="1">
    > <tr>
    > <td>
    > </td>
    > </tr>
    > <tr>
    > <td>
    > </td>
    > </tr>
    > <tr>
    > <td>
    > <table border="1">
    > <tr>
    > <td>
    > Search<br>Catalog
    > </td>
    > </tr>
    > </table><img src="">
    > </td>
    > <td>
    > </td>
    > </tr>
    > </table>
    >
    > </body>
    >
    > </html>



    You need to tell the image where you want it.

    Rather than <img src="">

    You need <img src="" align="right">
    lime, Aug 9, 2004
    #3
  4. michaaal

    Webcastmaker Guest

    In article <PgBRc.7670$>,
    says...
    > Here is a simplified version of my code which utilizes a nested table.


    One sec while I take the time to build a sample page so I can see a
    demonstration of what you are trying to tell me.

    Wait a second, YOU should provide a sample page.
    --
    WebcastMaker
    The easiest and most affordable way to create
    Web casts, or put presentations on the Web.
    www.webentations.com
    Webcastmaker, Aug 9, 2004
    #4
  5. michaaal

    Sid Ismail Guest

    On Mon, 09 Aug 2004 02:25:51 GMT, "michaaal" <> wrote:

    : Search
    : Catalog -------> The image is to the right
    : ---------------------------------------------
    :
    :
    : The problem is the browser displays the output something like this...
    : ---------------------------------------------
    : Search
    : Catalog
    :
    : The image is below


    <table align=left>


    </table>
    <img src="...>


    Or use the CSS float=left

    Sid
    Sid Ismail, Aug 9, 2004
    #5
  6. michaaal

    michaaal Guest

    "Webcastmaker" <> wrote in message
    news:...
    > In article <PgBRc.7670$>,
    > says...
    > > Here is a simplified version of my code which utilizes a nested table.

    >
    > One sec while I take the time to build a sample page so I can see a
    > demonstration of what you are trying to tell me.
    >
    > Wait a second, YOU should provide a sample page.


    Webcastmaker, I did provide sample code in my first post. Was this not
    adequate?

    And my response to the other posts.... Why do you waste time telling me to
    use <p> when I clearly stated that I'm only interested in using nested
    tables for this particular project? By the way adding style="float:right;"
    or align="right" didn't solve the problem. It would be nice if you test
    your results without blindly posting them.
    michaaal, Aug 9, 2004
    #6
  7. michaaal

    brucie Guest

    in post: <news:UKJRc.8328$>
    michaaal <> said:

    >> One sec while I take the time to build a sample page so I can see a
    >> demonstration of what you are trying to tell me.
    >> Wait a second, YOU should provide a sample page.


    > Webcastmaker, I did provide sample code in my first post. Was this not
    > adequate?


    you're supposed to make it easy for people to help you for free. supply
    a URL, don't expect people to screw around reconstructing a page that
    may not be the same or behave the same as the one you're working on.

    <quote>
    Avoid posting multiple lines of markup, often the markup posted is
    incomplete and doesn't help identify the problem. Supply a link, it
    makes it much easier for people to help you.
    </quote> http://alt-html.info/


    --
    i h e a r v o i c e s
    brucie, Aug 9, 2004
    #7
  8. michaaal

    PeterMcC Guest

    michaaal wrote in
    <UKJRc.8328$>

    > "Webcastmaker" <> wrote in message
    > news:...
    >> In article <PgBRc.7670$>,
    >> says...
    >>> Here is a simplified version of my code which utilizes a nested
    >>> table.

    >>
    >> One sec while I take the time to build a sample page so I can see a
    >> demonstration of what you are trying to tell me.
    >>
    >> Wait a second, YOU should provide a sample page.

    >
    > Webcastmaker, I did provide sample code in my first post. Was this
    > not adequate?
    >
    > And my response to the other posts.... Why do you waste time telling
    > me to use <p> when I clearly stated that I'm only interested in using
    > nested tables for this particular project? By the way adding
    > style="float:right;" or align="right" didn't solve the problem. It
    > would be nice if you test your results without blindly posting them.


    It may help to know that they're a funny lot around here - unlike other
    places that you've been, this lot tend not to give out useful advice to
    people that address them in the manner above. I know that it feels like
    pandering to unreasonable expectations but, if you engage them in pleasant
    discourse, they'll provide a much better response.

    And, once you have your answers, you can tell them what you think of them ;)

    --
    PeterMcC
    If you feel that any of the above is incorrect,
    inappropriate or offensive in any way,
    please ignore it and accept my apologies.
    PeterMcC, Aug 9, 2004
    #8
  9. michaaal

    Webcastmaker Guest

    In article <UKJRc.8328$>,
    says...
    > > One sec while I take the time to build a sample page so I can see a
    > > demonstration of what you are trying to tell me.
    > > Wait a second, YOU should provide a sample page.

    > Webcastmaker, I did provide sample code in my first post. Was this not
    > adequate?


    Well apparently not eh?
    --
    WebcastMaker
    The easiest and most affordable way to create
    Web casts, or put presentations on the Web.
    www.webentations.com
    Webcastmaker, Aug 9, 2004
    #9
  10. michaaal

    Webcastmaker Guest

    In article <41177d67$0$539$>,
    says...
    > And, once you have your answers, you can tell them what you think of them ;)


    Of course when you have a different problem you have to come back
    with a different alias....
    --
    WebcastMaker
    The easiest and most affordable way to create
    Web casts, or put presentations on the Web.
    www.webentations.com
    Webcastmaker, Aug 9, 2004
    #10
  11. michaaal

    michaaal Guest

    > It may help to know that they're a funny lot around here - unlike other
    > places that you've been, this lot tend not to give out useful advice to
    > people that address them in the manner above. I know that it feels like
    > pandering to unreasonable expectations but, if you engage them in pleasant
    > discourse, they'll provide a much better response.
    >
    > And, once you have your answers, you can tell them what you think of them

    ;)
    >


    PeterMcC,

    Your comments were well taken and were. I'll let the sarcastic balkers'
    comments
    speak for themselves.
    michaaal, Aug 10, 2004
    #11
  12. michaaal wrote:
    > Here is a simplified version of my code which utilizes a nested table.
    > .........
    > <html>
    >
    > <body>
    >
    > <table border="1">
    > <tr>
    > <td>
    > </td>
    > </tr>
    > <tr>
    > <td>
    > </td>
    > </tr>
    > <tr>
    > <td>
    > <table border="1">
    > <tr>
    > <td>
    > Search<br>Catalog
    > </td>
    > </tr>
    > </table><img src="">
    > </td>
    > <td>
    > </td>
    > </tr>
    > </table>
    >
    > </body>
    >
    > </html>



    not sure what you are asking (because I dont like reading long bit of text)
    but I can see straight away that your parent tables first two rows have one
    cell each, where the third row has two cells. does that help?
    Disco Octopus, Aug 10, 2004
    #12
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Williams
    Replies:
    2
    Views:
    1,105
    Jacob Yang [MSFT]
    Aug 12, 2003
  2. Russ Perry Jr
    Replies:
    2
    Views:
    4,093
    Russ Perry Jr
    Aug 20, 2004
  3. Rio
    Replies:
    4
    Views:
    1,172
  4. Alfonso Morra
    Replies:
    7
    Views:
    308
    Alfonso Morra
    Jul 19, 2005
  5. Chad E. Dollins
    Replies:
    3
    Views:
    645
    Kai-Uwe Bux
    Nov 8, 2005
Loading...

Share This Page