473,396 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Table COLSPAN & ROWSPAN

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

Oct 25 '05 #1
12 3942
Els
pl*******@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 -
Oct 25 '05 #2
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.

Oct 25 '05 #3
Els
pl*******@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 -
Oct 25 '05 #4
Els wrote:
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.


That, dear Els, is Google's fault. It *is* possible to reply with quoted
text on GG, but how is not obvious at all.
Oct 25 '05 #5
Els
TomB wrote:
Els wrote:
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.


That, dear Els, is Google's fault. It *is* possible to reply with quoted
text on GG, but how is not obvious at all.


I agree only partly.
Yes, it's Google who hides the correct method, and even advertises the
no-quote version as a quicker method. But it's the poster's
responsibility to quote. Even a copy paste would work.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Oct 25 '05 #6
On Tue, 25 Oct 2005 18:28:47 +0200, TomB <dr******@dusk-metal.kicks-ass.org>
wrote:
Els wrote:
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.


That, dear Els, is Google's fault.


Not really. If the Google Groups user first uses Google to try and find an
answer on his/her question (usually there will be an answer), or at least to see
what the group is actually about and how people interact by browsing through
some recent messages a few days back, that GG user is bound to also find a
recent post that refers to
<URL:ttp://www.safalra.com/special/googlegroupsreply/>. At least they'll find a
charter and a FAQ as they are weekly posted.

To me if a fresh participant in this group behaves in a deviant way, it is as if
a new customer comes in to a bar, walks to the far left corner, drops his pants
and starts to pee, facing the back wall. 'Well,' the reply is if asked what the
beep he's doing 'this is where the toilet is in the bar I frequent, so bugger if
it isn't here in this one, but that's not my problem.'
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Oct 25 '05 #7
In article <11*********************@g14g2000cwa.googlegroups. com>,
<pl*******@yahoo.com> wrote:
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.


Well, why didn't you ask us how to do *that*, rather than how to
do it some specific way that, in the end, is impossible.

--
= Eric Bustad, Norwegian bachelor programmer
Oct 25 '05 #8
pl*******@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/>.
Oct 25 '05 #9
Barbara de Zoete wrote:
On Tue, 25 Oct 2005 18:28:47 +0200, TomB
<dr******@dusk-metal.kicks-ass.org> wrote:
Els wrote:
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.

That, dear Els, is Google's fault.

Not really. If the Google Groups user first uses Google to try and find
an answer on his/her question (usually there will be an answer), or at
least to see what the group is actually about and how people interact
by browsing through some recent messages a few days back, that GG user
is bound to also find a recent post that refers to
<URL:ttp://www.safalra.com/special/googlegroupsreply/>. At least they'll
find a charter and a FAQ as they are weekly posted.

To me if a fresh participant in this group behaves in a deviant way, it
is as if a new customer comes in to a bar, walks to the far left
corner, drops his pants and starts to pee, facing the back wall.
'Well,' the reply is if asked what the beep he's doing 'this is where
the toilet is in the bar I frequent, so bugger if it isn't here in this
one, but that's not my problem.'

:D You got a point there. But still I think that Google Groups could be
designed better...
Oct 25 '05 #10
Els
TomB wrote:

[Google Groups reply system]
:D You got a point there. But still I think that Google Groups could be
designed better...


I don't think anyone disagrees with that :-)
Can't even imagine GG themselves would disagree once they investigated
it, actually...

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Oct 25 '05 #11
<pl*******@yahoo.com> wrote:
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.


You can't do that. Other than the floating div, which others have already
suggested, your only table-based option is this:

<table>
<tr>
<td>
<p>
<table align='right'><tr><td>B B B</tr></td></table>
A A A </p>
</td>
</tr>
</table>

miguel
--
Hit The Road! Photos from 38 countries on 5 continents: http://travel.u.nu
Latest photos: Burma; Hong Kong; Macau; Amsterdam; Grand Canyon; Amman
Airports of the world: http://airport.u.nu
Oct 28 '05 #12
Miguel Cruz <mn*@admin.u.nu> wrote:
<table align='right'><tr><td>B B B</tr></td></table>


Sorry, switch the </tr> and </td>, of course.

miguel
--
Hit The Road! Photos from 38 countries on 5 continents: http://travel.u.nu
Latest photos: Burma; Hong Kong; Macau; Amsterdam; Grand Canyon; Amman
Airports of the world: http://airport.u.nu
Oct 28 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bart Heinsius | last post by:
Hi, I can't get my cell widths fixed in a table in IE6. In Mozilla it works, see http://www.xs4all.nl/~margreeh/aa.html . It's the blue cells that remain fixed at 20pt widths in Mozilla but not...
19
by: Logix | last post by:
Hello! I'm trying to make a sort of online page building system. In order to do this, I represent my page using a HTML table. One of the most basic templates would be a page divided in six...
2
by: The_Original_MB | last post by:
I have a task to create tables dynamically, using the javascript DOM. The current method uses a 1px x 1px IFRAME to loop through some data generation stuff, and then call JS functions in the parent...
5
by: outstretchedarm | last post by:
I'm extremely new to javascript and to programming in general. I am trying to create an interactive table. I have already created the table with constants, in the key of C (it is for music). ...
1
by: Starlite | last post by:
Hi, I've already written a simple XML and CSS file. My aim is to display the information in table form. For example: Apple Orange Watermelon Banana But i...
3
by: Starlite | last post by:
Hi, I've already written a simple XML and CSS file. My aim is to display the information in table form. For example: Apple Orange Watermelon Banana But i...
9
by: axlq | last post by:
Before I try to do this myself (I remember doing it in Java years ago and it was a pain).... Has anyone run across a function that will take a string parameter containing an HTML table, and...
1
by: abhishekbrave | last post by:
I hava xml code in following format. My aim is to convert this show the data present here in tabular format to a HTML page. <table bid="18" sid="7" ref="REF_17" x="0" y="80" h="50" w="607"...
3
dmjpro
by: dmjpro | last post by:
I think iText commonly used to create or manipulate PDF document in Java. So finally i decided to throw a question over here. For two days i am struggling. I encountered two types of table .....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.