Forum Moderators: not2easy
Let's see - how to describe this better...? I see there are not UBB codes for posting images. May I link to an image?
Thanks for any help you can offer.
Someone posted this the other day. Sorry, can't recall whom to give the credit to.
<img src='img/foo.jpg' align='right' vspace='2' hspace='2'>And the text goes around it.
Pendanticist.
<img src="path/to/image/" style="float: left;" />
pendanticist...wot no CSS on the CSS forum ;) so I'm taking your nickname literally
Skoobuoy:
CSS
td img {float: right;}HTML
<table>
<tr><td>
<img src="your.gif" width="30" height="30" alt="" />
lots and lots of text here
</td>/tr>
</table>
if you float an image then type however much text you want it will wrap around...
You can then also give it margins as required to space the text away from the image..
e.g.
td img {float: right; margin-left: 20px; margin-bottom: 20px;}
Suzy
<added>Birdman you must be faster at typing than me!</added>
The special problem is that the content I'm speaking of is all placed inside of a one-cell table.
Here'll, I'll illustrate:
Before CSS:
/-----------------------------\
¦0o0o0o0 Text text text text ¦
¦0imageo Text text text text ¦
¦0o0o0o0 Text text text text ¦
¦Text text text text Text text¦
¦Text text text text Text text¦
¦Text text text text Text text¦
\-----------------------------/
After CSS:
0o0o0o0
0imageo------------------------\
0o0o0o0 * Text text text text ¦
¦* * * * * Text text text text ¦
¦* * * * * Text text text text ¦
¦Text text text text Text text ¦
¦Text text text text Text text ¦
¦Text text text text Text text ¦
\-----------------------------/
The asterisks represent all the extra space I'm trying to fill up. Here's my code so far:
<td width="100%">
<img src="snowman.jpg" style="position:relative; bottom:46px; right:54; float:left;">
Text text text Text text text Text text text Text text
text Text text text Text text text Text text text Text
text text
</td>
Thanks again. Such quick feedback!
Skoo
Hmmm... not sure why you'd need position: relative; in there.
Am I missing something as I'm late to the party? ;)
Nick
If there's any confusion about this, I _do_ have an explanatory image I could link to, if I was given permission.
1. Unfortunately, the Z-index property has no effect if I use margin:-x to move the image. The reason is that I'm combining CSS with standard tables. Now, the problem is, when I set the margins of the corner image to negative numbers, the browser understands this to mean that such-and-such x-y coordinates of the image aren't important. Thus, no matter if I set the Z-index to 10000000, the 3/4 of the image that move outside of the <td> cell will never appear. They're doomed to hide behind the table corner.
2. For this reason, it was necessary to use position:relative; - it allows the image to bleed outside of the table cell. One might say that relative positioning gives the image a default Z-index priority.
3. This still leaves me with poorly wrapped text. No problem! I just apply negative margin properties to the other sides of the image, and the text behaves as it ought.
My code looks like this:
<td width="100%">
<img src="gravestone.jpg" align="left" style="position:relative; bottom:45px; right:53px; margin-bottom:-45px; margin-right:-53px;">
</td>
The end result? Each "update window" (a one-celled table with a thick decorated border and text content) has an accompanying graphic that sits on top of the upper left corner; the content wraps smoothly around the lower-right portion of the corner image. Beautiful!
Thanks for your help guys.