Warning: include_once(/www/templates/gt/parts/blogs/carptips/first.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2005_09_01_archive.php on line 19

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/first.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2005_09_01_archive.php on line 19

Tuesday, September 13, 2005

Wrapping text around images 

With either of the commercial versions of CaRP, you can display images that feeds point to using the <enclosure> element or <image< element. By default, text will not wrap around these images. If you want the text to wrap, you can surround the image with a <div> that is floated to the side using the following code:

CarpConf('biimage','<div style="float:left;margin-right:8px;">');
CarpConf('aiimage','</div>');

When doing this, it's a good idea to clear floats at the end of each item, in case the text isn't long enough to get past the image, like this:

CarpConf('ai','<br clear="left" />');

NOTE: All versions of CaRP can display images pointed to by the HTML <img> tag in the description by adding "img" to the "descriptiontags" using the code show below. CaRP's image configuration settings do not affect these images--only those from the <enclosure> and <image< elements. Here's the code to display images embedded in the description:

CarpConfAdd('descriptiontags','|img');
// posted by Antone Roundy @ 8:40 AM
(3) comments
http://carp.docs.geckotribe.com/tips/2005/09/wrapping-text-around-images.php

This page is powered by Blogger. Isn't yours?


Warning: include_once(/www/templates/gt/parts/blogs/carptips/second.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2005_09_01_archive.php on line 47

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/second.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2005_09_01_archive.php on line 47
ARCHIVES

Warning: include_once(/www/templates/gt/parts/blogs/carptips/third.php) [function.include-once]: failed to open stream: No such file or directory in /www/gt/docs/carp/tips/2005_09_01_archive.php on line 54

Warning: include_once() [function.include]: Failed opening '/www/templates/gt/parts/blogs/carptips/third.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/gt/docs/carp/tips/2005_09_01_archive.php on line 54