Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
How to right-align a textile image
Hi everyone. Don’t know if you all know about this already but I thought I’d post it in case it helps someone.
The right-alignment syntax for images doesn’t work properly, so until now I always thought I had to use the xhtml tag if I wanted to get <code>align=“right”</code> behaviour. This was doubly annoying since the tag generator doesn’t include alt text in xhtml tags, I had to type it in myself.
But, it turns out there is a way to do it in textile, by putting the image in its own paragraph, and floating it right.
<code><pre>
p{float: right}. ! /images/23.jpg (alt text) !
</pre></code>
tada!
Last edited by jdueck (2004-04-29 03:17:33)
Offline
Re: How to right-align a textile image
You don’t need a paragraph for this. I use the following textile for this:
<code>
x{float: right; margin-bottom: 10px;}/images/lattemacchiato.jpg(Latte Macchiato)x
</code>
Replace the x with the ! for the image, textile ate them away here.
Last edited by Flashpix (2004-04-28 10:49:18)
Offline
Re: How to right-align a textile image
That doesn’t work for me in g1.18a
Offline
Re: How to right-align a textile image
OK, wait, I guess it does, it’s just that textile is super picky about the css syntax when dealing with images for some reason.
It only works if you make sure you have a space after every colon.
Also, even if you put your own semicolon at the very end, textile adds another one.
Not sure why this happens just for image markup.
Offline
#5 2005-12-12 03:26:09
- szac
- Member
- From: Detroit-ish
- Registered: 2004-09-18
- Posts: 50
Re: How to right-align a textile image
Thanks! Works great
Offline
Pages: 1