Wrap text around a right-aligned icon?
Posted
by user246114
on Stack Overflow
See other posts from Stack Overflow
or by user246114
Published on 2010-06-02T03:16:50Z
Indexed on
2010/06/02
3:23 UTC
Read the original article
Hit count: 322
Hi,
Is it possible to make a small box (which will be a row element in a list for me) with an icon in the upper right corner, and text wrapped around it? Something like:
-------------------------------------------------
| Some text here which may wrap around [icon] |
| if it were to get too long, but then fit well |
| around the icon in the upper right corner? |
-------------------------------------------------
I was going to use this as a row in a list, and the user could click the icon in the upper-right to delete the row. I could use either a <div> or a <table>, I'm not sure which will be better?:
<div>
<p>The text</p>
<img src="close.png" align="upper-right">
</div>
Thanks
© Stack Overflow or respective owner