Table spacing - how can I remove the "carriage return"?

M

michaaal

Whenever I place a table inside of another table cell like this...


<table>
<tr>
<td>
<table>
<tr>
<td>
hello1
</td>
</tr>
</table>
<table>
<tr>
<td>
hello2
</td>
</tr>
</table>
</td>
</tr>
</table>

....the second table is below the first one instead of to the right of it.
Is there a way to have the tables side by side without having an individual
cell for each table?
 
K

Kris

michaaal said:
Is there a way to have the tables side by side without having an individual
cell for each table?

Use CSS for layout and research absolute positioning, float and margin.
 
S

Sid Ismail

: Whenever I place a table inside of another table cell like this...
:
:
: <table>
: <tr>
: <td>
: <table>
: <tr>
: <td>
: hello1
: </td>
: </tr>
: </table>

<----- </td><td>

: <table>
: <tr>
: <td>
: hello2
: </td>
: </tr>
: </table>
: </td>
: </tr>
: </table>
:
: ...the second table is below the first one instead of to the right of it.
: Is there a way to have the tables side by side without having an individual
: cell for each table?
:
 
M

Matt Clara

michaaal said:
Whenever I place a table inside of another table cell like this...


<table>
<tr>
<td>
<table align="left">
<tr>
<td>
hello1
</td>
</tr>
</table>
<table>
<tr>
<td>
hello2
</td>
</tr>
</table>
</td>
</tr>
</table>

...the second table is below the first one instead of to the right of it.
Is there a way to have the tables side by side without having an individual
cell for each table?

Set the first of the two internal tables to align="left", as I've done
above.
 
N

Neal

<----- </td><td>

I think the problem is trying to nest tables for layout. While the above
solution works, it's working farther away from best practice.

With CSS you can assign a {width: 40%; margin: auto 4.9%; float: left;} to
each table and they SHOULD behave, though there are some bugs in browsers
with tables in general, so try before you buy.

Better yet - unless the tables are data tables in the real example, use
divs and CSS positioning, and reserve tables for when actualy comparing
data.
 
S

Sid Ismail

: Set the first of the two internal tables to align="left", as I've done
: above.

align=left is the default.

Sid
 
M

Matt Clara

Sid Ismail said:
: Set the first of the two internal tables to align="left", as I've done
: above.

align=left is the default.

Sid

Bullshit, try it with and without.
 
N

Neal

See attached pages, and next time you go to shoot down a simple,
effective
solution to someone's problems, how about you try it first?

1) Don't send attachments to a non-binary newsgroup.

2) Lighten up and stop being a dick.
 
M

Matt Clara

rf said:
Matt Clara wrote
You are thinking of text-align: left; Sid.


No need to be rude about it :)

Sorry: too many years in state government, where the dismisal of perfectly
good, efficient ideas is an everyday event.
align is deprecated. Use CSS: style="float: left"

I'm afraid I'm a bit "old school", which stems from yet more years taking
word documents and converting them to html, where bill gate's styles are an
absolute nightmare. I've recently discovered, however, that a few embedded
styles can take care of a whole page of text, cutting down overhead
dramatically. Overhead in terms of time and bandwidth.

Sorry for the binary posting, too. I've just come to think of "alt" groups
as binary groups (I do some 3d work, and photography as well). Fortunately
at 3KB, the whole post was smaller than most any long-winded post you're
likely to find!). I'll make sure to pay closer attention next time.
 
T

Toby Inkster

Matt said:
Sorry for the binary posting, too. I've just come to think of "alt" groups
as binary groups (I do some 3d work, and photography as well). Fortunately
at 3KB, the whole post was smaller than most any long-winded post you're
likely to find!). I'll make sure to pay closer attention next time.

Size is not so much the problem. Content-Type is.
 
S

Sid Ismail

:
: > : >> Bullshit, try it with and without.
: > See attached pages, and next time you go to shoot down a simple,
: > effective
: > solution to someone's problems, how about you try it first?
:
: 1) Don't send attachments to a non-binary newsgroup.


Yes, ok - I thought of text-align left. Tangent of thinking of my mind.
But my post came earlier than his... where the OP _definitely_ wanted two
tables to be in two td's in a larger table so getting them both
side-by-side. Such an elegant solution that I posed was substituted with
floating align=left's.

Aligh-left (with or without hspace and vspace) is best reserved for text
around an image, or text to the right of a table.

Sid
(in plain text)
 
M

Matt Clara

Toby Inkster said:
Size is not so much the problem. Content-Type is.

It is my understanding that size is everything when it comes to binaries
being posted into non binary groups. What do you care, otherwise what the
content type is? It doesn't effect your download, won't break your
newsreader, and you can ignore it if you choose to. On the other hand, text
based forums are intended as a wealth of information available to the
public. Text takes less bandwidth than images, and is thus retained on the
server(s) for longer periods of time. In that scenario, one good sized
image (200KB) would bump a hundred or more text based messages (1-3KB) right
off the group.

A picture may speak a thousand words, but it takes that much more space as
well!
 
M

Matt Clara

Sid Ismail said:
:
: > : >> Bullshit, try it with and without.
: > See attached pages, and next time you go to shoot down a simple,
: > effective
: > solution to someone's problems, how about you try it first?
:
: 1) Don't send attachments to a non-binary newsgroup.


Yes, ok - I thought of text-align left. Tangent of thinking of my mind.
But my post came earlier than his... where the OP _definitely_ wanted two
tables to be in two td's in a larger table so getting them both
side-by-side. Such an elegant solution that I posed was substituted with
floating align=left's.

Aligh-left (with or without hspace and vspace) is best reserved for text
around an image, or text to the right of a table.

Sid
(in plain text)

My apologies for jumping down your throat.
That Neal guy though, why, he's just as big a jerk as me!
 
S

Sam Hughes

It is my understanding that size is everything when it comes to
binaries being posted into non binary groups.

[... snip good reasons why size matters the most]
A picture may speak a thousand words, but it takes that much more
space as well!

No, the real problem is that attachments are evil.

(quote)
begin 666 tablesalignleft.html
<table>
<tr>
....
(/quote)

See that 666? It means that attachments are evil.

:)
 
S

Sid Ismail

: My apologies for jumping down your throat.
: That Neal guy though, why, he's just as big a jerk as me!


No p.

Hearing Aide
------------

A man was telling his neighbor, "I just bought a new hearing aide.
It cost me $4,000, but it's state of the art."

"Really?" answered the neighbor. "What kind is it?"

"Twelve-thirty."


:)

Sid
 
T

Toby Inkster

Matt said:
What do you care, otherwise what the
content type is? It doesn't effect your download, won't break your
newsreader, and you can ignore it if you choose to.

Doesn't break *my* newsreader, no. Breaks some though.

Ignore it? A newsreader can't really ignore a Content-Type, otherwise it
will end up doing things like displaying JPEGs as garbled text.

The main badness about non-text/plain Content-Types though is that many
news servers simply filter them out.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top