Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-16 11:03:30

senior
New Member
Registered: 2006-05-16
Posts: 3

Wrapping text around article_image

Hi!

I would like to wrap text around a pic but it seems (to me) that when I use the “article_image”-tag its not possible.

I tried the following lines in the form, but no cigar:

txp:article_image align=“left”

and when that didn’t work I tried:

txp:article_image class=“content”

…along with this CSS:

img.content { float:left; background:#fff; border:0px solid#fff; display:block; margin:0px 7px 0px 0px; padding:4px; position:relative;
}

…………but neither seems to work when I use the “article_image-tag”

Though do the ID-tag work, but I want to: <txp:image id=”#” /> have different pics to different articles.

Any ideas, anyone?

Cheers!

(Edit: updated thread subject to something more helpful. :) -Mary)

Last edited by Mary (2006-05-17 01:31:47)

Offline

#2 2006-05-16 16:10:29

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: Wrapping text around article_image

the content class should work, though you don’t need the position:relative.
is there a place we can see the outputted html/css?


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#3 2006-05-16 16:39:26

senior
New Member
Registered: 2006-05-16
Posts: 3

Re: Wrapping text around article_image

Yepp, sure:

http://www.wikings.net/tomtom/

The two small pics in the middle section are the one I’m refering to….

Offline

#4 2006-05-16 18:09:59

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Wrapping text around article_image

Well leaving aside that using tables for layout isn’t a good idea, you should go through and clean up some of the markup. You have block elements inside inline tags which may be causing some problems eg <code><span><p></p></span></code>.

You also have an invalid link statement in the head <code><link rel=“stylesheet” href=”“ type=“testing.css” media=“screen” /></code>

Also not sure what the style=“style rule” is for in the page style statement.

I’ve never tried using a tag.class structure (ie img.content) without the parent class (ie .content) so I’m not sure it will work. In looking at your source, there is no element assigned a class of content, so the img.content wouldn’t work in any case.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#5 2006-05-16 20:45:51

senior
New Member
Registered: 2006-05-16
Posts: 3

Re: Wrapping text around article_image

….the strange thing is that everything works when I use the ID-tag, have a look at the sajt now as the pics are ID-taged instead of namerelated. I know there are lots of code faults. However it seems quite strange, to me anyway, that it would depend on excessive coding rather than interpretation of the code. Basicly the result turns out to be right in one case and bad in one, although I used the same coding overall except the ID-tag…

Offline

Board footer

Powered by FluxBB