Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-10 19:12:05
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Image and Text Alignment in Form
I was trying to do something simple, but the results are not what I had anticipated.
I am trying to align an image (that is attached to an article) with the body of the article so that the image appears then the article with the tops aligned … I was attempting to us the efollowing code
<code><txp:article_image /><txp:body /></code>
What is occurring is that it shows the image on top of the text …
Any assistance would be appreciated …
Last edited by progre55 (2006-05-10 19:12:33)
Offline
#2 2006-05-10 19:41:17
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Image and Text Alignment in Form
This is normal, since the body starts with a <p>
tag (block element). But just adding align="left"
to your txp:article_image tag solves it.
Offline
#3 2006-05-10 20:09:42
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Image and Text Alignment in Form
Thanks for the response, but I thought the same and it did not work.
This is the code I am using:
<code><txp:article_image align=“left” /><txp:body /></code>
Offline
#4 2006-05-10 21:03:38
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Image and Text Alignment in Form
Try <txp:article_image style="float:left;" /><txp:body />
Offline
#5 2006-05-10 21:11:46
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Image and Text Alignment in Form
Real strange. Maybe something with your css. Would you have an url for me to check?
Offline
#6 2006-05-11 00:47:40
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Image and Text Alignment in Form
Thanks for all your assistance; unfortunately Els soultion did not work so I went another route.
<code><TABLE>
<TR>
<TD><txp:article_image /></TD>
<TD><B><txp:title /></B><BR><txp:body /></TD>
</font>
</TABLE></code>
Then I am controlling the text attributes with css. Probably not the most elegant answer, but it works.
guiguibonbon: Thanks for your help. Will post site when done, just not there yet, but again thanks for the input.
Last edited by progre55 (2006-05-11 00:50:05)
Offline
Pages: 1