Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > DIV and DIV on different lines

Reply
Thread Tools

DIV and DIV on different lines

 
 
Mica Cooper
Guest
Posts: n/a
 
      08-11-2005
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


 
Reply With Quote
 
 
 
 
Disco Octopus
Guest
Posts: n/a
 
      08-11-2005
> 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>




--
a beef jerky web site : http://www.choicebeefjerky.com.au
not a beef jerky web site : http://mycoolfish.com/vote.cmks
eating alone is medicinal


 
Reply With Quote
 
 
 
 
Jedi Fans
Guest
Posts: n/a
 
      08-11-2005
Disco Octopus wrote:
> 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

--
Hope This Helped and MTFBWY...
Kieren aka JediFans - <URL:http://jedifans.com/>
The Force Is With Me, SuSE Linux Professional 9.3, Mozilla Firefox
1.0.6, Mozilla Thunderbird 1.5 Alpha 2 and Revenge Of The Sith!
 
Reply With Quote
 
Jedi Fans
Guest
Posts: n/a
 
      08-11-2005
Jedi Fans wrote:
> Disco Octopus wrote:
>> 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
>

sorry was wrong suggestion...should be:
<td><div style="float:left;">....</div><div
style="float:right;">....</div><div style="clear:both;">&nbsp;</div></td>

--
Hope This Helped and MTFBWY...
Kieren aka JediFans - <URL:http://jedifans.com/>
The Force Is With Me, SuSE Linux Professional 9.3, Mozilla Firefox
1.0.6, Mozilla Thunderbird 1.5 Alpha 2 and Revenge Of The Sith!
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      08-12-2005
> From: "Mica Cooper" <(E-Mail Removed)> Newsgroups: alt.html
> 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... )

 
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
FAQ 6.3 How can I pull out lines between two patterns that are themselves on different lines? PerlFAQ Server Perl Misc 0 04-19-2011 10:00 AM
FAQ 6.3 How can I pull out lines between two patterns that are themselves on different lines? PerlFAQ Server Perl Misc 0 01-14-2011 05:00 AM
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM
Border lines in hidden div bleed through into visible div Jon Javascript 2 05-07-2004 04:06 PM



Advertisments