Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-02-06 22:40:42
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Image not aligning as it should
I’m trying to align text all the way down the side of an image, but it’s not happening. The image is just being inserted as normal. Here is the code:
<code>
<txp:if_article_list>
<table border=0 cellspacing=“0” cellpadding=“2”><tr><td class=“off” onmouseover=“this.className=‘on’” onmouseout=“this.className=‘off’”>
<txp:permlink><txp:article_image align=“right” />
<font size=2><b><txp:title /></b></font><br>
</txp:permlink>
</code>
<code>
<i><txp:etz_striptags><txp:excerpt/></txp:etz_striptags></i>
<txp:permlink>Read More</txp:permlink>
<txp:image id=“1” /><br><br>
</td></tr></table>
</txp:if_article_list>
</code>
Am I doing something wrong?
Last edited by Champak (2006-02-06 22:42:31)
Offline
Re: Image not aligning as it should
You mean like the image here, only on the other side?
In my case, the align=“right” part did not work also, so I gave it a class by putting the image inside a span tag, like this:
<code><h2><txp:title /></h2>
<span class=“bookcover”><txp:article_image /></span>
<txp:body /></code>
and then in the CSS:
.bookcover {float: left; margin: 0 25px 15px 0;}
I’m not sure if this is what you are after, but…
Offline
#3 2006-02-08 05:29:44
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: Image not aligning as it should
Thanks
Offline
Pages: 1