Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-04-27 14:30:54

jdueck
Plugin Author
From: Minneapolis, MN
Registered: 2004-02-27
Posts: 147
Website

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

#2 2004-04-28 10:48:34

Flashpix
Plugin Author
From: Cologne/Germany
Registered: 2004-04-11
Posts: 19
Website

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

#3 2004-04-29 13:52:13

jdueck
Plugin Author
From: Minneapolis, MN
Registered: 2004-02-27
Posts: 147
Website

Re: How to right-align a textile image

That doesn’t work for me in g1.18a

Offline

#4 2004-04-29 15:23:40

jdueck
Plugin Author
From: Minneapolis, MN
Registered: 2004-02-27
Posts: 147
Website

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

Board footer

Powered by FluxBB