Results 1 to 6 of 6

Thread: text, image on same line in TD

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    text, image on same line in TD

    help me out here, will ya?

    Code:
    <TABLE>
    <TR>
    <TD>Text, blah blah blah<IMG align="right" src="button.gif"></TD></TR>
    </TABLE>
    When I do this, the image falls over to the second line. I'd like to get the text and image to align on the SAME line.

    Dunno what's wrong with me today. Maybe u can help.

  2. #2
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    not to 100% on this but i think it's
    Code:
    <TD>Text, blah blah blah<IMG align="right" src="button.gif" style="float: right"></TD></TR>

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    no

  4. #4
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    try this

    Code:
    <TD><IMG src="button.gif" style="float: right">Text, blah blah blah</TD>
    The image needs to be in front of the text in your code.
    This allows you to get this effect

    text text text --------------
    text text text | Image |
    text text text --------------
    text text text text text text
    text text text text text text

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    You just earned yourself a cookie! Thanks!

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Also I think you should be able to add

    Code:
    style="white-space:nowrap;"
    to stop line breaks. I've found that if the browser size is too small float makes either the text or image break down a line.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width