|
-
Jun 10th, 2002, 12:30 AM
#1
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.
-
Jun 10th, 2002, 03:26 AM
#2
Hyperactive Member
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>
-
Jun 10th, 2002, 05:51 AM
#3
no
-
Jun 10th, 2002, 06:02 AM
#4
Hyperactive Member
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
-
Jun 10th, 2002, 12:15 PM
#5
You just earned yourself a cookie! Thanks!
-
Jun 10th, 2002, 01:23 PM
#6
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|