Word Wrap around images

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
wwhite
Registered User
Posts: 56
Joined: Sat Feb 08, 2003 2:20 pm
Location: CT, USA

Word Wrap around images

Post by wwhite »

I've seen this done before like here:
http://msnbc.com/news/1001835.asp?0si=-

I would like the text to wrap around a picture in one of my template pages. Can anyone tell me how?

Also, trying to get two bird with one stone: How can I customize the general error and Info messages? Thanks.
Kurashu
Registered User
Posts: 10
Joined: Sun Dec 07, 2003 8:31 pm
Contact:

Post by Kurashu »

Assuming that this image will be in a forum post, but then again we all know what assuming does, then I would say create a new class in the overall_header.tlp that looked like this (correct me if I'm wrong):

Code: Select all

.img {float: *left, right, center*}
Then it should work, but that quick fix will affect ALL images.
wwhite
Registered User
Posts: 56
Joined: Sat Feb 08, 2003 2:20 pm
Location: CT, USA

Post by wwhite »

I couldnt get that to work. I think I am look at a larger problem here if you look at my other post about formatting paragraphs in mySQL. I'm trying to do a CMS like system where someone can type up a article and an image can go with the article. Thanks for you reply.

Edit: I did get your code to work but not with my article that is fetched from the database. Right now this is the html I have.

Code: Select all

<span class="articlebody">  {REVIEW}<img src="/templates/nexpost/images/g-avatar.gif" width="70" height="75" class="featureimg"><br>
                            </span>
With this code, the {REVIEW} just pushed the image down without wrapping around it. I need to fiqure out a way to parse a the image into the article.
Kurashu
Registered User
Posts: 10
Joined: Sun Dec 07, 2003 8:31 pm
Contact:

Post by Kurashu »

wwhite wrote: I couldnt get that to work. I think I am look at a larger problem here if you look at my other post about formatting paragraphs in mySQL. I'm trying to do a CMS like system where someone can type up a article and an image can go with the article. Thanks for you reply.

Edit: I did get your code to work but not with my article that is fetched from the database. Right now this is the html I have.

Code: Select all

<span class="articlebody">  {REVIEW}<img src="/templates/nexpost/images/g-avatar.gif" width="70" height="75" class="featureimg"><br>
                            </span>
With this code, the {REVIEW} just pushed the image down without wrapping around it. I need to fiqure out a way to parse a the image into the article.


Try this then:

Code: Select all

<span class="articlebody">  {REVIEW}<img src="/templates/nexpost/images/g-avatar.gif" width="70" height="75" class="featureimg" style="float:right"><br>
                            </span>
That should have the text wrap around the image.
SamG
Former Team Member
Posts: 3221
Joined: Fri Aug 31, 2001 6:35 pm
Location: Beautiful Northwest Lower Michigan
Name: Sam Graf

Post by SamG »

<span> is an in-line tag, so I think you will need to use something like <p> to get the image to float.
We should talk less, and say more.
Kazer0
Registered User
Posts: 876
Joined: Sun Nov 10, 2002 2:05 am
Location: {postrow.POSTER_FROM}
Contact:

Post by Kazer0 »

div align="left" should do it.
Andrew Charron || alexis support forum || Specializing in phpBB website template integration
Hurry up, my feash is siek.
AndrewCharron.com version 5 released!
Jay
Former Team Member
Posts: 807
Joined: Wed Nov 07, 2001 11:41 pm
Location: Austin, TX
Contact:

Post by Jay »

try this...

Code: Select all

<img src="blah.jpg" align="left">
that sould work :)
Themes: :: dvdfuture.com theme
Web Sites: Development Site for dvdfuture.com :: http://www.dvdfuture.com
The phpBB Portal is Not dead!
wwhite
Registered User
Posts: 56
Joined: Sat Feb 08, 2003 2:20 pm
Location: CT, USA

Post by wwhite »

I tried all of these but they don't work because of the {REVIEW}. Some how, I need to parse some code into the article to make it show within the article. I think I need to solve this problem first:
http://www.phpbb.com/phpBB/viewtopic.ph ... highlight=

Thanks for all your help.
Locked

Return to “[2.0.x] Styles Development & Discussion”