Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-03 15:28:18

feytus
Member
Registered: 2009-06-02
Posts: 43

[textile] Image padding in article?

Yo again! I’ve been searching the net to find the textile-tag for image padding in articles, and I’ve found a couple of websites that says you can use a “)” in your textile tag to make an image have a padding of 1em to the left. Anyways, I tried this in my article, but it doesn’t get formatted to html. This is the tag I’ve been writing;

!>)http://urltomyimg/4t.jpg!

Dropped the actual URL because I don’t want people to see the site yet. :) I’ve tried placing the “)” on different sides of the >, but to no avail.

How can I put padding on an image within an article?

Offline

#2 2009-06-03 16:11:55

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: [textile] Image padding in article?

Set a class:

!(padding-left)http://urltomyimg/4t.jpg!

Style the class:

.padding-left {
  padding-left: 1em
}

Offline

#3 2009-06-03 16:13:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,028
Website GitHub Mastodon Twitter

Re: [textile] Image padding in article?

feytus wrote:

Yo again! I’ve been searching the net to find the textile-tag for image padding in articles, and I’ve found a couple of websites that says you can use a “)” in your textile tag to make an image have a padding of 1em to the left. Anyways, I tried this in my article, but it doesn’t get formatted to html. This is the tag I’ve been writing;

Hi feytus

I’m not sure where you found that! the way I would go about it is !(padd)http://urltomyimg/4t.jpg(some alt text here)!

then add this css rule .padd{padding-left:1em;}

>Edit trenc beat me to it:)

Last edited by colak (2009-06-03 16:14:27)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2009-06-03 16:14:49

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: [textile] Image padding in article?

Hihi colak! :)

Or using inline:

!{padding-left:1em}http://urltomyimg/4t.jpg!

Last edited by trenc (2009-06-03 16:16:34)

Offline

#5 2009-06-03 16:17:32

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,028
Website GitHub Mastodon Twitter

Re: [textile] Image padding in article?

trenc wrote:

Or:
!{padding-left:1em}http://urltomyimg/4t.jpg!

Would this work? textism returns: <img src="{padding-left:1em}http://urltomyimg/4t.jpg" alt="" />


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2009-06-03 16:53:32

feytus
Member
Registered: 2009-06-02
Posts: 43

Re: [textile] Image padding in article?

Sweetness! You guys are so awesome! Thank you so very much! As you might understand; I’m pretty new to CSS, and especially to textpattern, but I’m loving it more and more by every minute! :) This was were I found that with the “(” by the way;

http://blogs.gawker.com/docs/mtmanual_textile2.html

But as I see, it’s for textile 2, and I’m using 4. :)

Offline

#7 2009-06-03 17:42:32

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [textile] Image padding in article?

colak wrote:

textism returns: …

I don’t think Textism’s Textile page has been updated for a while ;) Thresholdstate returns

<img src="http://urltomyimg/4t.jpg" style="padding-left:1em;" alt="" />

Offline

#8 2009-06-03 18:55:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,028
Website GitHub Mastodon Twitter

Re: [textile] Image padding in article?

Els wrote:

I don’t think Textism’s Textile page has been updated for a while ;)

Yep. had it bookmarked for a few years now and although seldom visit the particular page I was trying to multi-task here with embarrassing results:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#9 2009-06-03 21:27:08

trenc
Plugin Author
From: Malmö
Registered: 2008-02-27
Posts: 572
Website GitHub

Re: [textile] Image padding in article?

feytus wrote:

Sweetness! You guys are so awesome! Thank you so very much! As you might understand; I’m pretty new to CSS, and especially to textpattern, but I’m loving it more and more by every minute! :)

You’re welcome! :)

This was were I found that with the “(” by the way;

http://blogs.gawker.com/docs/mtmanual_textile2.html

But as I see, it’s for textile 2, and I’m using 4. :)

No no, you’re resp. Textpattern is using a textile version 2, too. You are mistaked Textile for Textpattern, which is the cms itself. The Textile manual you found describes an adapted textile version for Movable Type.

Offline

Board footer

Powered by FluxBB