Click here to get back home

Table COLSPAN & ROWSPAN

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Table COLSPAN & ROWSPAN plugwalsh 10-25-2005
Get Chitika Premium
Posted by plugwalsh on October 25, 2005, 8:22 am
Please log in for more thread options


Hi

I need to generate an HTML table that looks like the following:
(Two cells, A & B)

-------------------
| | |
| | B |
| | |
| |--------|
| A |
| |
| |
-------------------

In other words, can I use the rowspan & colspan together to get a cell
to flow around another cell? I need text in cell A to wrap around cell
B. It HAS to be done like this, not in a separate, right-aligned table
for B. Needs to be in a single table.

I thought:
<TABLE border=1px>
<TR><TD ROWSPAN=2 COLSPAN=2> A </TD><TD> B </TD></TR>
<TR></TR>
</TABLE>

(but obviously not!)

Anyone know how?

Thanks


Posted by David Ross on October 25, 2005, 3:16 pm
Please log in for more thread options


plugwalsh@yahoo.com wrote:
>
> Hi
>
> I need to generate an HTML table that looks like the following:
> (Two cells, A & B)
>
> -------------------
> | | |
> | | B |
> | | |
> | |--------|
> | A |
> | |
> | |
> -------------------
>
> In other words, can I use the rowspan & colspan together to get a cell
> to flow around another cell? I need text in cell A to wrap around cell
> B. It HAS to be done like this, not in a separate, right-aligned table
> for B. Needs to be in a single table.
>
> I thought:
> <TABLE border=1px>
> <TR><TD ROWSPAN=2 COLSPAN=2> A </TD><TD> B </TD></TR>
> <TR></TR>
> </TABLE>
>
> (but obviously not!)
>
> Anyone know how?
>
> Thanks

To use newspaper and magazine terminology, this looks like main
text (A) wrapping around a sidebar (B). I do this all the time
with style-sheets. See my
<URL:http://www.rossde.com/UPS_sucks/index.html>; scroll down to
the fourth white box. Note that the outlines around the boxes and
the white backgrounds are part of the style. You can do this
without the outlines and with the same background color as the main
text.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.

Posted by Els on October 25, 2005, 5:29 pm
Please log in for more thread options


plugwalsh@yahoo.com wrote:

> I need to generate an HTML table that looks like the following:

You're sure you don't need to generate HTML to look like the following
but not necessarily a table?

> (Two cells, A & B)
>
> -------------------
>| | |
>| | B |
>| | |
>| |--------|
>| A |
>| |
>| |
> -------------------
>
> In other words, can I use the rowspan & colspan together to get a cell
> to flow around another cell?

Nope, not that I know of.

> I need text in cell A to wrap around cell B.

No you don't. You need (want) text in cell A to wrap around whatever B
is. (hint: not a cell)

> It HAS to be done like this,

I'll take that last line with a large grain of salt, because if that
were true, you didn't need to ask anything.

> not in a separate, right-aligned table
> for B. Needs to be in a single table.

Let me guess. You have a clever teacher who is testing you?

> I thought:
> <TABLE border=1px>
> <TR><TD ROWSPAN=2 COLSPAN=2> A </TD><TD> B </TD></TR>
> <TR></TR>
> </TABLE>
>
> (but obviously not!)

You're right.

> Anyone know how?

Yes.
Abandone the flowing around a cell idea, and go for a floated div (B)
inside a table cell (A). That is, if you have a compelling reason to
use tables at all, but that's your eh.. business :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Posted by plugwalsh on October 25, 2005, 8:40 am
Please log in for more thread options


Jeez. Another ijit that thinks he/she is so smart & funny.

It's for an HTML newsletter and I've tried a lot of floating div
options & right aligned tables, but in the most popular mail clients
(yahoo, hotmail, outlook) it doesn't come out right because they alter
the html of such divs etc. and have quirky ways of displaying it.

It would be ideal if I could use a simple table, but then I need one
cell to flow around the other.


Posted by Els on October 25, 2005, 5:55 pm
Please log in for more thread options


plugwalsh@yahoo.com wrote:

> Jeez. Another ijit that thinks he/she is so smart & funny.

There's loads of us here.
There's also loads of Google Groups users who don't seem to realise
that a lot of knowledgeable people are filtering out any posts by
Google Groups users, because those Google Group users have a habit of
not quoting what they are replying to.

Hint:
http://www.safalra.com/special/googlegroupsreply/

> It's for an HTML newsletter and I've tried a lot of floating div
> options & right aligned tables, but in the most popular mail clients
> (yahoo, hotmail, outlook) it doesn't come out right because they alter
> the html of such divs etc. and have quirky ways of displaying it.

Doubt it's as quirky as trying to do this:

> It would be ideal if I could use a simple table, but then I need one
> cell to flow around the other.

I did mention (iirc) in my ijit funny/smart reply that that isn't
possible.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

or
Similar ThreadsPosted
Colspan - rowspan HTML Table August 19, 2004, 3:08 am
Table Within Table with colspan and width=100% August 15, 2005, 10:41 am
Newbie: Problems with table cells & colspan August 9, 2004, 7:11 pm
html table, colspan weirdness I don't know how to work around April 18, 2006, 10:26 pm
rowspan question March 30, 2005, 1:16 pm
Rowspan and cell height January 20, 2006, 6:06 pm
February 24, 2005, 1:04 am
colspan="1/2"? November 18, 2006, 10:39 pm
TD Maximum Colspan March 24, 2005, 1:20 pm
[newbie] client side jscript for a table inside a table March 24, 2005, 8:01 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap