Aligning text & images without tables

Started by Zeitgeist, May 04, 2010, 11:03:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zeitgeist

I could have swore (did actually), someone posted once about how to wrap or position text around images, without using tables. I've looked for it myself, I swear but cannot find it again. Any help would be greatly appreciated.  ;D

Kye

[float=left][img]http://Image URL here[/img][/float]

[float=right][img]http://Image URL here[/img][/float]

Hope it helps!

Zeitgeist


Zeitgeist

This isn't looking right to me at all. Does the text go inside the float tag?

Kye

You can see an example of how that code looks here

[float=right][IMG]http://i88.photobucket.com/albums/k176/kyrsa/FD%20Characters/GabrielSullivan.jpg[/img][/float] Text goes here

Zeitgeist

Quote from: Kyrsa on May 05, 2010, 12:03:52 AM
You can see an example of how that code looks here

[float=right][IMG]http://i88.photobucket.com/albums/k176/kyrsa/FD%20Characters/GabrielSullivan.jpg[/img][/float] Text goes here


After some grumbling of "It can't be done!", I got it. Thank you ;)

Kye

Quote from: Zamdrist of Zeitgeist on May 05, 2010, 12:14:50 AM
After some grumbling of "It can't be done!", I got it. Thank you ;)

Excellent.  You're most welcome.

Oreo

You can also insert padding into the code to place a small distance between the words and the picture.

[*floatright][img padding=15]  Anywhere from 8 -15 pixels is a good distance.

She led me to safety in a forest of green, and showed my stale eyes some sights never seen.
She spins magic and moonlight in her meadows and streams, and seeks deep inside me,
and touches my dreams. - Harry Chapin

Caeli

#8
For future reference, using the <code> tag makes it much easier to show code without needing to stick asterisks into the brackets. :-)

[img padding=10]Image URL here[/img]

I've found that 5 or 10 works best for me, usually 5 (like in this example); any more creates a more noticeable "invisible border" on top of the image, where the text will not align with the top of the image.
ʙᴜᴛᴛᴇʀғʟɪᴇs ᴀʀᴇ ɢᴏᴅ's ᴘʀᴏᴏғ ᴛʜᴀᴛ ᴡᴇ ᴄᴀɴ ʜᴀᴠᴇ ᴀ sᴇᴄᴏɴᴅ ᴄʜᴀɴᴄᴇ ᴀᴛ ʟɪғᴇ
ᴠᴇʀʏ sᴇʟᴇᴄᴛɪᴠᴇʟʏ ᴀᴠᴀɪʟᴀʙʟᴇ ғᴏʀ ɴᴇᴡ ʀᴏʟᴇᴘʟᴀʏs

ᴄʜᴇᴄᴋ ❋ ғᴏʀ ɪᴅᴇᴀs; 'ø' ғᴏʀ ᴏɴs&ᴏғғs, ᴏʀ ᴘᴍ ᴍᴇ.
{ø 𝕨 
  𝕒 }
»  ᴇʟʟɪᴡʀɪᴍᴏ
»  ᴄʜᴏᴏsᴇ ʏᴏᴜʀ ᴏᴡɴ ᴀᴅᴠᴇɴᴛᴜʀᴇ: ᴛʜᴇ ғɪғᴛʜ sᴄʜᴏʟᴀʀʟʏ ᴀʀᴛ
»  ひらひらと舞い散る桜に 手を伸ばすよ
»  ᴘʟᴏᴛ ʙᴜɴɴɪᴇs × sᴛᴏʀʏ sᴇᴇᴅs × ᴄʜᴀʀᴀᴄᴛᴇʀ ɪɴsᴘɪʀᴀᴛɪᴏɴs

Zeitgeist

Ah, thank you Oreo. I wasn't a fan of how the text butted up against the image like that, and the padding was perfect. Thank you.

Oreo

You're welcome, Zamdrist.

Thanks Caeli, *makes a note*  8-)

She led me to safety in a forest of green, and showed my stale eyes some sights never seen.
She spins magic and moonlight in her meadows and streams, and seeks deep inside me,
and touches my dreams. - Harry Chapin