DIV and DIV on different lines

Discussion in 'HTML' started by Mica Cooper, Aug 11, 2005.

  1. Mica Cooper

    Mica Cooper Guest

    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
    Mica Cooper, Aug 11, 2005
    #1
    1. Advertising

  2. > 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
    Disco Octopus, Aug 11, 2005
    #2
    1. Advertising

  3. Mica Cooper

    Jedi Fans Guest

    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!
    Jedi Fans, Aug 11, 2005
    #3
  4. Mica Cooper

    Jedi Fans Guest

    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!
    Jedi Fans, Aug 11, 2005
    #4
  5. Mica Cooper

    dorayme Guest

    > From: "Mica Cooper" <> 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... )
    dorayme, Aug 12, 2005
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Wright
    Replies:
    0
    Views:
    499
    Joe Wright
    Jul 27, 2003
  2. Murali
    Replies:
    2
    Views:
    544
    Jerry Coffin
    Mar 9, 2006
  3. Jon
    Replies:
    2
    Views:
    184
  4. PerlFAQ Server
    Replies:
    0
    Views:
    157
    PerlFAQ Server
    Jan 14, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    144
    PerlFAQ Server
    Apr 19, 2011
Loading...

Share This Page