Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Nested Table - what's wrong with this code?

Reply
Thread Tools

Nested Table - what's wrong with this code?

 
 
michaaal
Guest
Posts: n/a
 
      08-09-2004
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>


 
Reply With Quote
 
 
 
 
Ryan Stewart
Guest
Posts: n/a
 
      08-09-2004
"michaaal" <> wrote in message
newsgBRc.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.


 
Reply With Quote
 
 
 
 
lime
Guest
Posts: n/a
 
      08-09-2004
> 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">


 
Reply With Quote
 
Webcastmaker
Guest
Posts: n/a
 
      08-09-2004
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
 
Reply With Quote
 
Sid Ismail
Guest
Posts: n/a
 
      08-09-2004
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

 
Reply With Quote
 
michaaal
Guest
Posts: n/a
 
      08-09-2004
"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.


 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      08-09-2004
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

 
Reply With Quote
 
PeterMcC
Guest
Posts: n/a
 
      08-09-2004
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.

 
Reply With Quote
 
Webcastmaker
Guest
Posts: n/a
 
      08-09-2004
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
 
Reply With Quote
 
Webcastmaker
Guest
Posts: n/a
 
      08-09-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is nested class automatically friend of class that it is nested in? request@no_spam.com C++ 5 09-25-2006 08:31 AM
Nested Vector Nester Classes are Nested in my Brain Chad E. Dollins C++ 3 11-08-2005 04:46 AM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Nested iterators (well, not nested exactly...) Russ Perry Jr Java 2 08-20-2004 06:51 PM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57