DIV and DIV on different lines

M

Mica Cooper

How do you keep

<TD><DIV align='left'>....</DIV><DIV align='right'>....</DIV></TD>

from wrapping the right DIV onto a new line? It always does this.

Thanks,
Mica
 
D

Disco Octopus

How do you keep
<TD><DIV align='left'>....</DIV><DIV align='right'>....</DIV></TD>

from wrapping the right DIV onto a new line? It always does this.

Thanks,
Mica

try this
<td><div style="float:left;">....</div><div
style="float:right;">....</div></td>
 
J

Jedi Fans

Disco said:
try this
<td><div style="float:left;">....</div><div
style="float:right;">....</div></td>

so that the table cell doesnt collapse:
<td><div style="float:left;">....</div><div>....</div></td>
would be better
 
J

Jedi Fans

Jedi said:
so that the table cell doesnt collapse:
<td><div style="float:left;">....</div><div>....</div></td>
would be better
sorry was wrong suggestion...should be:
<td><div style="float:left;">....</div><div
style="float:right;">....</div><div style="clear:both;">&nbsp;</div></td>
 
D

dorayme

From: "Mica Cooper said:
Date: Wed, 10 Aug 2005 22:19:15 -0500 Subject: DIV and DIV on different lines

How do you keep

<TD><DIV align='left'>....</DIV><DIV align='right'>....</DIV></TD>

from wrapping the right DIV onto a new line? It always does this.

Thanks, Mica
Yes, that is what this construction should do. The
"align="right" bit tells the text or other content
to go to the right of the div concerned, there is
no instruction about where the div itself is. The
default with every div is new line. You can use
'float' something like what was suggested by
another poster or tables with two columns or there
may be an overall better way depending on what
your purpose is... You might also dispense with
this align construction within the diff and use
css instead to accord with better practice.

dorayme

(I am forever fiddling with wrapping, excuse me... )
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top